Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local char = owner.Character
- local torso = char.Torso["Right Shoulder"]
- local run = game:GetService("RunService")
- local remote = Instance.new("RemoteEvent")
- remote.Name = "Dash"
- remote.Parent = char
- remote.OnServerEvent:Connect(function(player)
- local bv = Instance.new("BodyVelocity")
- bv.Parent = char.Torso
- bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- bv.Velocity = char.Torso.CFrame.LookVector * 40
- print("dash")
- game.Debris:AddItem(bv,0.1)
- end)
- NLS([[
- local uis = game:GetService("UserInputService")
- uis.InputBegan:Connect(
- function(input, busy)
- print("yea")
- if not busy then
- if input.KeyCode == Enum.KeyCode.Q then
- char.Dash:FireServer()
- end
- end
- end
- )
- ]],char)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement