Roblox Studio Tutorial: Ball Trap HD
Hi guys! Hope you enjoyed this vid on Roblox Studio! If you liked it and want to see more, leave a like! Thx for watching! Open Door Script: debounce = false door = script.Parent.Parent.Door function onTouched(hit) if debounce == false then debounce = true door.Transparency = 0.3 wait(0.01) door.Transparency = 0.6 wait(0.01) door.Transparency = 0.9 wait(0.01) door.Transparency = 1 door.CanCollide = false wait(1) door.Transparency = 0.9 wait(0.01) door.Transparency = 0.6 wait(0.01) door.Transparency = 0 door.CanCollide = true debounce = false end end script.Parent.Touched:connect (onTouched) Kill Script: script.Parent.Touched:connect(function(hit) if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then hit.Parent.Humanoid.Health = 0 end end)
Похожие видео
Показать еще