I can't find out how CFraming works... the best I can do is
function onTouch(hit) if hit.Parent:findFirstChild("Humanoid") then for I=1,50 do script.Parent.Position=script.Parent.Position+Vector3.new(0,0.5,0) --but if there's a part in the way, it teleports to the top of that part. end end end
Please help!
Use CFrame
to position the part while ignoring the collisions of other parts.
function onTouch(hit) if hit.Parent:findFirstChild("Humanoid") then for I = 1, 50 do script.Parent.CFrame = CFrame.new(0, 0.5, 0) end end end