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

How can I make Gamepass Team to Team changer GUI ?

Asked by 4 years ago

So basically i have a team changer gui, But I dont know how to make it that someone buys a gamepass like a VIP and Then he can change to that team through GUI but only the people that bought it no one else, How can I make it ? Script:

local TC = Instance.new("RemoteEvent") TC.Name = "TeamChanger" TC.Parent = game.ReplicatedStorage

TC.OnServerEvent:Connect(function(Player, TeamName) Player.Team = game.Teams[TeamName] Player:LoadCharacter() end)

And the GUI

Answer this question