Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

i'm trying to make a GUI appear when you click a brick how do you do it?

here is my script (its local)

local player = game.Workspace.localPlayer
local repStorage = game:GetService("ReplicatedStorage")
local remote = repStorage:FindFirstChild("ButtonClick")
mouse = player:GetMouse()
local idoit = script.Parent
UI = game.StarterGui.KiKidied.tooxtbutton --idk why i named it that no judge

idoit.MouseButton1Click:Connect(function()
	    player.PlayerGui.UI.Enabled = true
end)

2 comments

0

...

0

Edit: Put code in a code block

1 answer

I suggest putting the local script in playergui or starterplayerscript. If you want a gui to be visible, it be like the following example below. local GUI = blahblah local Button = GUI.Button

local frame = GUI.Frame

Button.MouseButton1Click:Connect(function() Frame.Visible = true end)

1 comment

0

i put it in starter gui and it still doesent work here it islocal player = game.Workspace.localPlayerlocal repStorage = game:GetService("ReplicatedStorage") local remote = repStorage:FindFirstChild("ButtonClick") mouse = player:GetMouse() local idoit = game.Workspace.CHING.ClickDetector UI = game.StarterGui.KiKidied.tooxtbutton --idk why i named it that no judge local GUI = UI local Button = GUI.B

This discussion is preserved as it was. New answers, comments, and votes are closed.