Advertisement
Anukun_Lucifer

TouchScript

Jan 10th, 2025
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | Gaming | 0 0
  1. local JumpscareEvent = game.ReplicatedStorage:WaitForChild("JumpscareEvent")
  2. local Debounce = false
  3.  
  4. script.Parent.Touched:Connect(function(hit)
  5.     local humanoid = hit.Parent:FindFirstChild("Humanoid")
  6.     hit.Parent.EffectWalk.Enabled = false -- ปิด Script EffectWalk
  7.  
  8.     if humanoid then
  9.         humanoid.WalkSpeed = 0
  10.         if Debounce == false then
  11.             Debounce = true
  12.             script.Parent.CanTouch = false
  13.             JumpscareEvent:FireAllClients(hit)
  14.             wait(7)
  15.             Debounce = false
  16.             script.Parent.CanTouch = true
  17.             hit.Parent.EffectWalk.Enabled = true -- เปิด Script EffectWalk
  18.         end
  19.     end
  20. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement