I'm trying to make a chair that when sat in will make a dialog box appear. (dialog box is done) I know that when you sit in a seat, a weld is created, so, I assumed to do this:
local seat = script.Parent
seat.ChildAdded:Connect(function(player)
wait(1)
player.Part1.Parent.PlayerGui.chair.Frame.Visible = true
end)
when I used print(player.Part1.Parent) I got my username in the output, so I thought, "hey, I bet that's where the playergui is." But I was wrong. when I put print(player.Part1.Parent.PlayerGui) I got an error that said it wasn't a part of model. I thought maybe it was because it was in a server script, but whenever I put it in a local script the script just does nothing. like no errors or anything. I think it might be because you cant use childadded in a local script but I'm not sure. Any help would be appreciated

1 comment
thanks ;)