프로그래밍/Roblox
블록스로 배우는 코딩 #3 - 일정시간 통과하는 벽
강릉바다의 블로그
2022. 10. 6. 20:34
local model = script.Parent
function touchEventt(part)
local character = part.Parent
local humanoid = character:FindFirstChild("Humanoid")
local wall = game.Workspace.Wall.Center
if humanoid ~= nil then
model.Color = Color3.fromRGB(255, 0, 0)
wall.Transparency = 0.8
wall.CanCollide = false
wait(5)
wall.Transparency = 0
wall.CanCollide = true
end
end
model.Touched:Connect(touchEventt)
강릉바다의 블로그
Since 2008. 1.