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

Why doesnt this button make the things I want to hide, not hide?

script.Parent.MouseButton1Click:Connect(function()
	game.Players.LocalPlayer:WaitForChild("PlayerGui").GiveDie.Enabled = false
	game.Players.LocalPlayer:WaitForChild("PlayerGui").WhichGive.Enabled = false
	game.Players.LocalPlayer.PlayerGui.Now.OkThen.Visible = true
end)

This is a Local Script inside the Text Button, Inside of a ScreenGui, inside StarterGui.

What it should do is make 72 things change its visible factor to false, 37 that are in a ScreenGui called GiveDie, and 35 things in another ScreenGui called WhichGive. These are both in StarterGui.

I have no idea why the Local Script isnt working, it has not told me any errors.

SOLVED BY LO_1003, I EDITED IT TO HIS ANSWER FROM COMMUNITY CHAT

1 answer

✓ Accepted answer

maybe try this:

credits to lo_1003

script.Parent.MouseButton1Click:Connect(function()
    game.Players.LocalPlayer:WaitForChild("PlayerGui").GiveDie.Enabled = false
    game.Players.LocalPlayer:WaitForChild("PlayerGui").WhichGive.Enabled = false
    game.Players.LocalPlayer.PlayerGui.Now.OkThen.Visible = true
end)

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