Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Don't Forget to Subscribe [ SxS Scripting ]
- local RS = game:GetService("ReplicatedStorage")
- local Player = game.Players.LocalPlayer
- local Character = Player.Character or Player.CharacterAdded:Wait()
- local Humanoid = Character:WaitForChild("Humanoid")
- local Tool = script.Parent
- local PushUpAnimation = Humanoid:LoadAnimation(game.ReplicatedStorage.PowerAnimations.PushUp)
- local function ChangeSpeed(x,z)
- Humanoid.WalkSpeed = x
- Humanoid.JumpPower = z
- end
- Tool.Equipped:Connect(function()
- PushUpAnimation:Play()
- PushUpAnimation:AdjustSpeed(0)
- ChangeSpeed(0,0)
- end)
- Tool.Unequipped:Connect(function()
- PushUpAnimation:Stop()
- ChangeSpeed(16,50)
- end)
- Tool.Activated:Connect(function()
- PushUpAnimation:Play()
- RS.PowerSystem:FireServer("PushUp")
- wait(1.16)
- PushUpAnimation:AdjustSpeed(0)
- end)
- -- Animation Track.Legnth - 0.01
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement