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

How do i make teams for admins and vips?

right now i have 2 teams, Admins, and Players. However i must add a player to admins manually everytime they join a server, is there a way i can get that to happen without me or them using the command themselfs?

1 answer

function haspass(player)
    return game:GetService("MarketplaceService"):PlayerOwnsAsset(player, 12964789) -- or whatever the pass ID is, it gets
end
 
game.Players.PlayerAdded:connect(function(plr)
    if haspass(plr) then -- checks if the player owns the gamepasss
       plr.TeamColor = BrickColor.new("admin color here") -- put the admin color here
    end
end)

#THIS HAS NOT BEEN TESTED

also, how do you want them to be added, WHO do you want ot be added?

2 comments

0

Good for my vip gamepass but not what im looking for

0

how do you want them to be added?

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