Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --//Useless Dash by iiJoeCats
- NLS([[
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- mouse.KeyDown:Connect(function(key)
- if key == "e" then
- game.ReplicatedStorage.DashEvent:FireServer(player.Character)
- end
- end)
- ]], owner.Character)
- local attack = false
- for i, v in pairs(game:GetService("ReplicatedStorage"):GetChildren()) do
- if v.Name == "DashEvent" then
- game.ReplicatedStorage.DashEvent:Destroy()
- end
- end
- local DashEvent = Instance.new("RemoteEvent",game.ReplicatedStorage)
- DashEvent.Name = "DashEvent"
- DashEvent.OnServerEvent:Connect(function(player,character)
- if attack == true then return end
- attack = true
- local bv = Instance.new("BodyVelocity",character.HumanoidRootPart)
- bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- bv.Velocity = character.HumanoidRootPart.CFrame.lookVector * 200
- game:GetService("Debris"):AddItem(bv, 0.5)
- wait(2)
- attack = false
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement