I have my script to where if the object touching the part is a hat then end the script else if it has a humanoid then teleport it into the house
here's my house
script.Parent.Touched:connect(function(hit)
if hit.Parent.Name == "Hat" then
print'nope'
elseif hit.Parent.Humanoid then
local h = game.Players:findFirstChild(hit.Parent.Name)
h.PlayerGui.Enter.Frame.Visible = true
h.PlayerGui.Enter.Button.Visible = true
else
end
end)

1 comment
Oh hey defaultio and thanks