So I made a wall that knocks back players this Is the script:
(BTW I DIDN'T ADD BODY VELOCITY BECAUSE ITS DEPCERATED)
script.Parent.Touched:Connect(function(hit)
local humanoid = hit.Parent:WaitForChild("Humanoid")
if humanoid then
local KnockBack = Instance.new("VectorForce")
KnockBack.Parent = humanoid.Parent
KnockBack.Attachment0 = humanoid.Torso
KnockBack.Force = Vector3.new(-1000,0,0)
end
end)

1 comment
Thanks!