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

How would I add it so if people own a gamepass theyre added to the 'Permited'?

Asked by 8 years ago

Gamepass> http://www.roblox.com/Referee-READ-DESC-item?id=378400317

local Permitted = {"iSidersz", "Player", "OrlandoBaller", "Vikesboy1", "badmax2021", "piratesfan21", "k1nq", "spidermanfuri", "mjkrga", "epikpython", "HttpDomi"}
local clo = game.Workspace.Puck:clone()


game.Workspace.Puck:clone()
game.Players.PlayerAdded:connect(function(plr) -- When a player joins

    for i,v in pairs(Permitted) do

        if v:lower() == plr.Name:lower() then -- Check if they're on the list

            plr.Chatted:connect(function(msg) -- When they chat. Msg is what they say

                if msg:lower() == "arp" then
    clo:clone().Parent = game.Workspace




                end

            end)

        end

    end
end)

Answer this question