ok so here is my code...
function idk() game.StarterGui.ScreenGui.colorred.visible = false game.StarterGui.ScreenGui.colorpink.visible = false game.StarterGui.ScreenGui.colorcyan.visible = false end script.Parent.MouseButton1Click:connect(idk)
so what im trying to do here is when i click a first button 3 more buttons pop up with colors so people can change them.. but when i click the first button with this code in it it doesent disappear am i doing somthing wrong?
local Player = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui") --Getting the local player function idk() Player.ScreenGui.colorred.Visible = false Player.ScreenGui.colorpink.Visible = false Player.ScreenGui.colorcyan.Visible = false end script.Parent.MouseButton1Click:connect(idk)
Also, make sure that this is in a LocalScript parented to the button that when you click the other buttons with disappear.
(What did you do wrong)
You tried editing the StarterGui (Gui) therefore editing the item when the player respawns.