script.Parent.MouseButton1Click:Connect(function()
game.StarterGui.WhichGive.BACKVIII.Visible = true
end)
BACKVIII is the Frame I wanted the script to make visible.
script.Parent.MouseButton1Click:Connect(function()
game.StarterGui.WhichGive.BACKVIII.Visible = true
end)
BACKVIII is the Frame I wanted the script to make visible.
The problem is that you put StarterGui instead of the PlayerGui
Fixed code here:
local player = game.Players.LocalPlayer
local playerGui = player:FindFirstChild("PlayerGui")
script.Parent.MouseButton1Click:Connect(function()
playerGui.WhichGive.BACKVIII.Visible = true
end)
also make sure this is in a localscript
There's something weird going on with your brackets
What do you mean?
when you wrote: (function()
It is supposed to be that way Pigred72.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
cool now i just need to figure out how to make the frame invisible aftrer clicking again