i'm trying to make a GUI appear when you click a brick how do you do it?
Please encode Lua code in the Lua block code tag (look for the Lua icon in the editor).
here is my script (its local)
01 | local player = game.Workspace.localPlayer |
02 | local repStorage = game:GetService( "ReplicatedStorage" ) |
03 | local remote = repStorage:FindFirstChild( "ButtonClick" ) |
04 | mouse = player:GetMouse() |
05 | local idoit = script.Parent |
06 | UI = game.StarterGui.KiKidied.tooxtbutton |
08 | idoit.MouseButton 1 Click:Connect( function () |
09 | player.PlayerGui.UI.Enabled = true |