Advertisement
SxScripting

PullUp Local Script [2021]

Jan 17th, 2021
2,192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. -- Don't Forget to Subscribe [ Sxs Scripting ]
  2.  
  3. local RS = game:GetService("ReplicatedStorage")
  4.  
  5. local Player = game.Players.LocalPlayer
  6. local Character = Player.Character or Player.CharacterAdded:Wait()
  7. local Humanoid = Character:WaitForChild("Humanoid")
  8. local Tool = script.Parent
  9.  
  10. local PullUp = Humanoid:LoadAnimation(game.ReplicatedStorage.PowerAnimations.PullUp)
  11.  
  12. local function ChangeSpeed(x,z)
  13. Humanoid.WalkSpeed = x
  14. Humanoid.JumpPower = z
  15. end
  16.  
  17. Tool.Equipped:Connect(function()
  18. PullUp:Play()
  19. PullUp:AdjustSpeed(0)
  20. RS.PowerSystem:FireServer("On")
  21. ChangeSpeed(0,0)
  22. end)
  23.  
  24. Tool.Unequipped:Connect(function()
  25. PullUp:Stop()
  26. RS.PowerSystem:FireServer("Off")
  27. ChangeSpeed(16,50)
  28. end)
  29.  
  30. Tool.Activated:Connect(function()
  31. PullUp:Play()
  32. RS.PowerSystem:FireServer("PullUp")
  33. wait(1.1)
  34. PullUp:AdjustSpeed(0)
  35. end)
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement