when i press p it wont change the velocity, why?
local script:
local mouse = game.Players.LocalPlayer:GetMouse()
local plr = game.Players.LocalPlayer
local body = Instance.new("BodyVelocity")
body.Parent = game.Workspace
mouse.KeyDown:connect(function(key)
if key == tostring("p") then
wait(0.2)
local strength = body.Velocity
body.Parent = plr.Character.HumanoidRootPart
strength = Vector3.new(0, 0, 500)
game.Workspace.Gravity = 0
end
end)

3 comments
i am not very good keybind functions but is that how you do it?
yes
i just dont understand why the velocity wont change