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

change team onclick not working?

yeah u click a button, its supposed to change the team but its not working lol

script.Parent.MouseButton1Click:connect(function()
game.Players.LocalPlayer.TeamColor = game:GetService("Teams").finessers.TeamColor
script.Parent.Visible = false
end)

2 comments

0

Is this a brick, or a gui? Also, why the lol?

0

gui obviously

2 answers

script.Parent.MouseButton1Click:connect(function()
game.Players.LocalPlayer.Team = game:GetService("Teams").finessers
script.Parent.Visible = false
end)

This will work better.

Make sure it's a Local Script

1 comment

0

it is... the script is inside the textbutton

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