I want to be able to change a player's team on a gui button, any help? I think somebody else has same problem lol
Change the Team
property of the player upon the button click
local targetTeam = game:GetService("Teams")["Team name"] button.MouseButton1Click:Connect(function() game:GetService("Players").LocalPlayer.Team = targetTeam end)
Marked as Duplicate by Avigant, GingeyLol, User#20388, Gey4Jesus69, Leamir, Le_Teapots, Vulkarin, and Programical
This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.
Why was this question closed?