Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local var41 = true --cooldown
- local Enabled = false --enabled
- local Ragdolled = Character:WaitForChild("Ragdolled")
- local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
- local Animator = Humanoid:WaitForChild("Animator")
- local UserInputService = game:GetService("UserInputService")
- local any_LoadAnimation_result1 = Animator:LoadAnimation(LocalPlayer.PlayerGui.Sprinting:WaitForChild("Animation2"))
- local DashForce = 90 --force
- UserInputService.InputBegan:Connect(function(arg1, arg2) -- Line 83
- if Enabled == true then
- --[[ Upvalues[5]:
- [1]: var40 (read and write)
- [2]: Ragdolled (readonly)
- [3]: any_LoadAnimation_result1 (readonly)
- [4]: HumanoidRootPart (readonly)
- [5]: Humanoid (readonly)
- ]]
- if not arg2 and arg1.UserInputType == Enum.UserInputType.Keyboard and arg1.KeyCode == Enum.KeyCode.E and var40 == true and Ragdolled.Value == false then
- if var41 == true then
- var40 = false
- end
- any_LoadAnimation_result1:Play()
- local BodyVelocity = Instance.new("BodyVelocity", HumanoidRootPart)
- BodyVelocity.MaxForce = Vector3.new(20000, 0, 20000)
- BodyVelocity.Velocity = Humanoid.MoveDirection * Vector3.new(DashForce, 0, DashForce)
- if Humanoid.MoveDirection == Vector3.new(0, 0, 0) then
- BodyVelocity.Velocity = HumanoidRootPart.CFrame.lookVector * Vector3.new(DashForce, 0, DashForce)
- end
- game.Debris:AddItem(BodyVelocity, 0.2)
- wait(2)
- if var41 == true then
- var40 = false
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement