In my short puzzle game, I have created all the levels and am making a finished room. I've written a script that is supposed to make a ScreenGui (inside of the StarterGui thing) visible, but it doesn't work. I do not get any error messages, but the ScreenGui doesn't appear.
As always, here is the code:
finishBase.Touched:Connect(function(h)
local p = h.Parent:FindFirstChild("Humanoid")
if p then
game.StarterGui.ScreenGui.Frame.Visible = true
end
end)
Thanks so much for the help!

3 comments
If you mean you want the gui to be toggled, then use ScreenGui.Enabled = true
@zandefear4 I already tried to reference the ScreenGui and change the enabled to true, it shows that it's true in properties, but has no effect in the game, it still remains invisible.
try this : insert a frame and put the background transparrency to 1 and then try puting it to visible/invisible