Advertisement
iiJosephCats205

Useless Dash FE

Sep 11th, 2019
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. --//Useless Dash by iiJoeCats
  2.  
  3.  
  4. NLS([[
  5.  
  6. local player = game.Players.LocalPlayer
  7. local mouse = player:GetMouse()
  8.  
  9. mouse.KeyDown:Connect(function(key)
  10. if key == "e" then
  11. game.ReplicatedStorage.DashEvent:FireServer(player.Character)
  12. end
  13. end)
  14. ]], owner.Character)
  15.  
  16. local attack = false
  17.  
  18. for i, v in pairs(game:GetService("ReplicatedStorage"):GetChildren()) do
  19. if v.Name == "DashEvent" then
  20. game.ReplicatedStorage.DashEvent:Destroy()
  21. end
  22. end
  23. local DashEvent = Instance.new("RemoteEvent",game.ReplicatedStorage)
  24. DashEvent.Name = "DashEvent"
  25.  
  26. DashEvent.OnServerEvent:Connect(function(player,character)
  27. if attack == true then return end
  28. attack = true
  29.  
  30. local bv = Instance.new("BodyVelocity",character.HumanoidRootPart)
  31. bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  32. bv.Velocity = character.HumanoidRootPart.CFrame.lookVector * 200
  33. game:GetService("Debris"):AddItem(bv, 0.5)
  34.  
  35. wait(2)
  36. attack = false
  37. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement