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

How do I make a gamepass that changes your team and give you a certain admin?

I don't know much about Lua. So can you help me, please?

1 comment

0

Not a request site. It's called Scripting Helpers because we help with scripting, not give out free code.

1 answer

✓ Accepted answer

What admin script are you running for your game? I know HD Admin supports gamepass ranks. As for changing teams, you would want to do something like this in a separate script:

local gamepassid = 0000000 -- substitute for GamePass ID
local ms = game:GetService("MarketplaceService")
local team = game.Teams.team -- substitute for the team in the Teams folder
game.Players.PlayerAdded:Connect(function(plr)
if ms:UserOwnsGamePassAsync(plr.UserId, gamepassid) then
plr.Team = team
end
end)

That script is pretty rushed, so I'm not sure if it would work

1 comment

0

Adonis Loader I know how to attach to Adonis Loader but I can't figure out how to add teams into the mix

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