Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local key = "ButtonR1" -- Keybind
- local u = game:GetService("UserInputService")
- u.InputBegan:Connect(function(input)
- if input.KeyCode == Enum.KeyCode[key] then
- local args = {
- [1]="dash"
- }
- game:GetService("Players").LocalPlayer.Character.OYS.ButtonPressed:FireServer(unpack(args))
- local force = Instance.new("BodyVelocity")
- force.Parent = Game.Players.LocalPlayer.Character.HumanoidRootPart
- force.Velocity = Vector3.new(0, -16, 0)
- force.MaxForce = Vector3.new(0, 0, 0)
- game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("Block"):FireServer()
- local args = {
- [1]="f"
- }
- game:GetService("Players").LocalPlayer.Character.OYS.ButtonPressed:FireServer(unpack(args))
- force.MaxForce = Vector3.new(0, 40000, 0)
- wait(0.1)
- force:Destroy()
- end
- end)
- local u2 = game:GetService("UserInputService")
- u.InputBegan:Connect(function(input)
- if input.KeyCode == Enum.KeyCode.LeftControl then
- local args = {
- [1]="dash"
- }
- game:GetService("Players").LocalPlayer.Character.OYS.ButtonPressed:FireServer(unpack(args))
- local force = Instance.new("BodyVelocity")
- force.Parent = Game.Players.LocalPlayer.Character.HumanoidRootPart
- force.Velocity = Vector3.new(0, -16, 0)
- force.MaxForce = Vector3.new(0, 0, 0)
- force.MaxForce = Vector3.new(0, 40000, 0)
- wait(0.1)
- force:Destroy()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement