So i tired to make an evade sytem for a game, but i know i did it dead wrong, please give me any details on how to fix this and how i can remember not to make this mistake anymore.
Here is the evade system code:
Player = game.Players.LocalPlayer
Mouse = Player:GetMouse()
Mouse.KeyDown:connect(function(key)
key = key:lower()
if key ~= "g" then return end;
local bv = Instance.new("BodyVelocity", Player.Character.Torso)
bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
bv.velocity = Player.Character.Torso.CFrame.lookVector*80
game.Debris:AddItem(Player.Character.Torso, 3)
game:GetService("Chat"):Chat(Player.Character.Head, "iEchoFalcon", "Blue")
end)

1 comment
bumb