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!
Make sure you use playergui as it replicates its self from startergui to playergui and Make sure it's in a local script due to FE
local player = game.Players.LocalPlayer finishBase.Touched:Connect(function(h) local p = h.Parent:FindFirstChild("Humanoid") if p then wait (1) player.ScreenGui.Frame.Visible = not player.ScreenGui.Frame.Visible end end)
You can just change the alpha. I would show code, but it is pretty easy, you can probably find a youtube tutorial on how to make a shop, and they will cover it.