hi, i made a script that damages a player or npc when they touch a brick but i need it to push them 3 studs backwards when they get hit.
this is the script (line 5 is what i thought could be a start. blade is the name of the part that damages the player.)
function onTouched(part)
local h = part.Parent:findFirstChild("Humanoid")
if h~=nil then
h.Health = h.Health -5
Blade:connect("Humanoid").FindPosition
wait(2.00)
end
end
script.Parent.Touched:connect(onTouched)
thanks in advance, from poopypigeon245
