Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local JumpscareEvent = game.ReplicatedStorage:WaitForChild("JumpscareEvent")
- local Debounce = false
- script.Parent.Touched:Connect(function(hit)
- local humanoid = hit.Parent:FindFirstChild("Humanoid")
- hit.Parent.EffectWalk.Enabled = false -- ปิด Script EffectWalk
- if humanoid then
- humanoid.WalkSpeed = 0
- if Debounce == false then
- Debounce = true
- script.Parent.CanTouch = false
- JumpscareEvent:FireAllClients(hit)
- wait(7)
- Debounce = false
- script.Parent.CanTouch = true
- hit.Parent.EffectWalk.Enabled = true -- เปิด Script EffectWalk
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement