function onTouch(Part)
if Part.Parent:findFirstChild("HumanoidRootPart") ~= nil and Part.Parent.Name ~= script.Parent.Name then
while script do wait()
local Root = Part.Parent.HumanoidRootPart
Root.CFrame = script.Parent.CFrame*CFrame.new(0,script.Parent.Size.Y/2,0)CFrame.Angles(math.rad(-90),0,0)
end
end
end
script.Parent.Touched:connect(onTouch)
COMMUNITY QUESTION
How come this hits the parent? How do i not let it hit the parent?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
you can use while wait() do instead of while script do wait()
What are you asking?