Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago
Edited by Shawnyg 6 years ago

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.

0
Edit: Put code in a code block Shawnyg 4330 — 6y
0
Is there anything in the output? Click F9. Is your game Filtering Enabled? xEiffel 280 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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)

Ad

Answer this question