script.Parent.Parent.ImageButton.MouseButton1Click:Connect(function()
if script.Parent.TextBox.Text == "password" then
script.Parent.Parent.Visible = false
end
end)
If someone ignores me, im going to cry, thank you.
sincerely yours,
vayouls.
Changes on UI elements don’t replicate to the server if done on the client. You need a LocalScript to handle it.
Add a new LocalScript in StarterPlayerScripts and paste this inside:
local SurfaceGui = workspace:WaitForChild("Monitor"):WaitForChild("SurfaceGui")
local Frame = SurfaceGui.Frame
local TextBox = Frame.TextBox
local ImageButton = Frame.ImageButton
ImageButton.MouseButton1Click:Connect(function()
if TextBox.Text == "password" then
Frame.Visible = false
end
end)