If you downvote this, please post why you did! The script is supposed to print (name of player) sat on seat, and then it is supposed to make the recover text (inside recovering GUI) visible! Why isn't that happening? Here is the script
local plr = nil;
script.Parent.ChildAdded:connect(function (obj)
if (not obj:IsA("Weld")) then return; end
if (plr ~= nil) then return; end
local tors = obj.Part1;
local char = tors.Parent;
plr = game.Players:findFirstChild(char.Name);
if (plr == nil) then return; end
print(plr.Name.." sat on this seat");
wait(1)--my part starts here
function onTouched(hit)
print("touched")
print(hit.Name)
print(hit.Parent.Name)
plr.PlayerGui.Recovering.Recover.Visible = true
end
end);
script.Parent.Parent.Foot1.Touched:connect(onTouched)
Please help!!! Thank you!!! P.S. It does print _____ sat on this seat

2 comments
Can you provide an error message?
"attempt to call a nil value" and that is it