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

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

Asked by
lomo598 -7
3 years ago

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

0
Not a request site. It's called Scripting Helpers because we help with scripting, not give out free code. LennyPlayzYT 269 — 3y

Closed as Not Constructive by LennyPlayzYT, IAmNotTheReal_MePipe, JesseSong, and Fifkee

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
-1
Answered by 3 years ago
Edited 3 years ago

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

0
Adonis Loader I know how to attach to Adonis Loader but I can't figure out how to add teams into the mix lomo598 -7 — 3y
Ad