of     1   

Sentonis
#141243389Wednesday, July 23, 2014 4:46 AM GMT

function getParent() if script.Parent.Parent == game.Workspace then script.Parent:remove() end Thanks
BothAngles
#141243654Wednesday, July 23, 2014 4:49 AM GMT

function getParent() Spawn(wait)--wait so the parent isnt nil if script.Parent.Parent == game.Workspace then script.Parent:remove() end end
Sentonis
#141244029Wednesday, July 23, 2014 4:53 AM GMT

Thanks, but it doesn't seem to work. My problem is that a vehicle seat enters the workspace after the character dies rather than disappearing. I'm trying to make a script that removes the seat once it enters the workspace.
Sentonis
#141244958Wednesday, July 23, 2014 5:02 AM GMT

bump
blox6137
#141245103Wednesday, July 23, 2014 5:03 AM GMT

You didn't call the function.
klkl
#141245251Wednesday, July 23, 2014 5:05 AM GMT

game.Workspace.Changed(function() for i,v in pairs(game.Workspace:GetChildren()) do if v.Name == "Seat" then v:Destroy() end end end Should work
blox6137
#141245354Wednesday, July 23, 2014 5:06 AM GMT

you forgot a parenthesis tsk tsk tsk
klkl
#141246237Wednesday, July 23, 2014 5:15 AM GMT

oops

    of     1