Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. lol.Touched:connect(function(h)
  2. if script.Parent.Sound.Playing == true then
  3. if h.Parent == player.Character:findFirstChild("Humanoid")~= nil then
  4. h.Parent.UpperTorso.Velocity = Vector3.new(30,30,30)
  5. h.Parent.Humanoid.WalkSpeed = 0
  6. h.Parent.LowerTorso.Velocity = Vector3.new(30,30,30)
  7. for i,v in pairs (h.Parent:GetChildren()) do
  8. if v:IsA('Tool') then
  9. for _,s in pairs (v:GetChildren()) do
  10. if s:IsA('Script') or s:IsA('LocalScript') then
  11. s.Disabled = true
  12. wait(.7)
  13. s.Disabled = false
  14. h.Parent.Humanoid.WalkSpeed = 16
  15. end
  16. end
  17. end
  18. end
  19. end
  20. end
  21. end)
  22. mol.Touched:connect(function(h)
  23. if script.Parent.Sound2.Playing == true then
  24. if h.Parent == player.Character:findFirstChild("Humanoid")~= nil then
  25. h.Parent.UpperTorso.Velocity = Vector3.new(30,30,30)
  26. h.Parent.LowerTorso.Velocity = Vector3.new(30,30,30)
  27. for i,v in pairs (h.Parent:GetChildren()) do
  28. if v:IsA('Tool') then
  29. for _,s in pairs (v:GetChildren()) do
  30. if s:IsA('Script') or s:IsA('LocalScript') then
  31. s.Disabled = true
  32. h.Parent.Humanoid.WalkSpeed = 0
  33. wait(.7)
  34. s.Disabled = false
  35. h.Parent.Humanoid.WalkSpeed = 16
  36. end
  37. end
  38. end
  39. end
  40. end
  41. end
  42. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement