local Part = script.Parent Part.Touched:connect(function(HIT) local h = HIT.Parent:FindFirstChild("Humanoid") if h then local Player = game.Players:GetPlayerFromCharacter(HIT.Parent) Player.PlayerGui.Placechanger.Door1.Visible = true end end) script.Parent.Touched:connect(onTouched)
1: Use a code block
2: Provide the output (F9 for ingame output)
3: you do not check if the player exists, meaning anything which touches it whose parent is a humanoid will error the script.
MayB the Gui deletes itself...
Closed as Not Constructive by Async_io, TheHospitalDev, and InfinitivePixelsJr
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?