I’m making a new game called “Push battles”, or “Push Arena”, or anything of that sort. The point of the game is it’s an arena that everyone is able to push and the point of the game is to kill others by pushing them into the lava.
The bug/issue here is the tool is pretty buggy and when you push a player it makes the player go in a backward position instead of a propper realistic position, it would be better if it pushed the enemy in the direction that my character is standing in.
Video of the bug: https://streamable.com/gm734e
Script:
script.Parent.RemoteEvent.OnServerEvent:Connect(function(player,victim)
if (victim.HumanoidRootPart.Position - player.Character.HumanoidRootPart.Position).magnitude <= 4.5 and (not player.Character:FindFirstChild("PushForce")) and (not victim:FindFirstChild("PushForce")) then
local PushForce = Instance.new("BodyVelocity")
PushForce.Name = "PushForce"
PushForce.MaxForce = Vector3.new(10000000,10000000,10000000)
PushForce.Velocity = (-victim.HumanoidRootPart.CFrame.lookVector) * 10
PushForce.Parent=victim.HumanoidRootPart
wait(0.5)
PushForce:Destroy()
end
end)