Hi! So in my game, I'm trying to develop a telekinetic Push ability however When the player presses the keybind, The player gets pushed behind the player or some other unwanted direction. I have some understanding of lookvectors yet it doesn't seem to work well.
This code is stored in a module script, which is triggered thru a remote event, the remote event is triggered by a local script that detects the keybind.
Thank you for anyone helping in advance.
local Push = Instance.new("BodyVelocity")
Push.Parent = victim.HumanoidRootPart
Push.Velocity = (HumanoidRP.Position) + Vector3.new(30,15,30)
--(X, Y, Z)
wait(timelimit)
Push:Destroy()
