Advertisement
Sir_Barcendo

Untitled

Mar 17th, 2023 (edited)
655
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.83 KB | None | 0 0
  1. local char = owner.Character
  2. local torso = char.Torso["Right Shoulder"]
  3. local run = game:GetService("RunService")
  4. local remote = Instance.new("RemoteEvent")
  5. remote.Name = "Dash"
  6. remote.Parent = char
  7.  
  8. remote.OnServerEvent:Connect(function(player)
  9.         local bv = Instance.new("BodyVelocity")
  10.         bv.Parent = char.Torso
  11.         bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  12.         bv.Velocity = char.Torso.CFrame.LookVector * 40
  13.        
  14.         print("dash")
  15.        
  16.         game.Debris:AddItem(bv,0.1)
  17. end)
  18.  
  19. NLS([[
  20. local uis = game:GetService("UserInputService")
  21.  
  22. uis.InputBegan:Connect(
  23.     function(input, busy)
  24.     print("yea")
  25.         if not busy then
  26.             if input.KeyCode == Enum.KeyCode.Q then
  27.                 char.Dash:FireServer()
  28.             end
  29.         end
  30.     end
  31. )
  32.     ]],char)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement