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

Im trying to make a screen GUI enabled = false, but will not work?

This is my script:

script.Parent.MouseButton1Click:Connect(function() 
	game.Players.LocalPlayer.Team = game.Teams["Class-D"]
	game.Players.LocalPlayer.Character.Humanoid.Health = game.StarterGui.TeamSelector.Enabled = false
end)

I also have multiple other Gui buttons having the same Script but different team.

2 comments

0

Edit: Put code in a code block

0

Is there anything in the output? Click F9. Is your game Filtering Enabled?

1 answer

Line 3 is incomplete. Perhaps that is why. script.Parent.MouseButton1Click:Connect(function() game.Players.LocalPlayer.Team = game.Teams["Class-D"] game.Players.LocalPlayer.Character.Humanoid.Health = 0 game.StarterGui.TeamSelector.Enabled = false end)

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