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 SitUpAnimaiton = Humanoid:LoadAnimation(game.ReplicatedStorage.PowerAnimations.SitUp)
- local function ChangeSpeed(x,z)
- Humanoid.WalkSpeed = x
- Humanoid.JumpPower = z
- end
- Tool.Equipped:Connect(function()
- SitUpAnimaiton:Play()
- SitUpAnimaiton:AdjustSpeed(0)
- ChangeSpeed(0,0)
- end)
- Tool.Unequipped:Connect(function()
- SitUpAnimaiton:Stop()
- ChangeSpeed(16,50)
- end)
- Tool.Activated:Connect(function()
- SitUpAnimaiton:Play()
- RS.PowerSystem:FireServer("SitUp")
- wait(.99)
- SitUpAnimaiton:AdjustSpeed(0)
- end)
- -- Animation Track.Legnth - 0.01
Add Comment
Please, Sign In to add comment