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

change team onclick not working?

Asked by 7 years ago

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)
0
Is this a brick, or a gui? Also, why the lol? hiimgoodpack 2009 — 7y
0
gui obviously thefuturedeveloper 0 — 7y

2 answers

Log in to vote
1
Answered by
Asceylos 562 Moderation Voter
7 years ago
Edited 7 years ago
script.Parent.MouseButton1Click:connect(function()
game.Players.LocalPlayer.Team = game:GetService("Teams").finessers
script.Parent.Visible = false
end)

This will work better.

Ad
Log in to vote
0
Answered by
aiuis 85
7 years ago

Make sure it's a Local Script

0
it is... the script is inside the textbutton thefuturedeveloper 0 — 7y

Answer this question