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

How do i make teams for admins and vips?

Asked by 8 years ago

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

Log in to vote
0
Answered by
theCJarmy7 1293 Moderation Voter
8 years ago
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?

0
Good for my vip gamepass but not what im looking for DoMoNiCgt 0 — 8y
0
how do you want them to be added? theCJarmy7 1293 — 8y
Ad

Answer this question