function onTouched(part)
local h = part.Parent:findFirstChild("Humanoid")
local p = Instance.new("Message")
p.Text = ""
p.Parent = game.Workspace
if h~=nil then
script.Parent.Parent.Parent = h.Parent
script:remove()
end
end
script.Parent.Touched:connect(onTouched)
Can anyone make it so that the parent of this script is only under ownership of the humanoid while the humanoid is sitting down?
Once they jump off the seat, the parent.parent of this script should go back to workspace. |