Yes, we do.
local ALLOWED_ACCESS = {
-- The Creators of the Spawner
--//[id] = true
[363064196] = true, -- gothicsky
[187044656] = true, -- Maple
[322000143] = true, -- ImperiousOctavian (Don't remove just because you hate him.)
[635282203] = true, -- GoldenGames1111 (Macedon Group Owner, our main Raiding Faction)
[399577223] = true, -- LilNappyBoyyyyy (gay)
[860258635] = true, -- AeliaCaesar
[0] = true,
}
local ALLOWED_GROUPS = {
{0,1}, -- format : {GROUP ID,FROM RANK}
-- GG Officers to Spawn Gear
{6446259, 180},
{6505044, 160},
{6496178, 200},
{5246351, 253},
{6419957, 253},
{5094202, 230},
}
function checkgroup(user)
for i = 1,#ALLOWED_GROUPS do
if user:IsInGroup(ALLOWED_GROUPS[i][1]) and ( user:GetRankInGroup(ALLOWED_GROUPS[i][1])==ALLOWED_GROUPS[i][2] ) then
return true
else
return false
end
end
end
function checkifallowed(user)
if ALLOWED_ACCESS[user.UserId] then
return true
else
if checkgroup(user) then
return true
else
return false
end
end
end
game.ReplicatedStorage.SpawnItem.OnServerInvoke = function(currentuser,target,item,typeofitem,typeofspawn)
if checkifallowed(currentuser) then
if typeofspawn == "inventory" then
game.ReplicatedStorage.SpawnItemLocal:FireClient(game.Players[target],typeofitem,item,currentuser.Name)
game.ReplicatedStorage.Webhook:Fire(currentuser,item,target,typeofitem,"log","inventory")
else
x.spawnitem(currentuser,typeofitem,item,target)
game.ReplicatedStorage.Webhook:Fire(currentuser,item,target,typeofitem,"log","drop")
end
return true
else
game.ReplicatedStorage.Webhook:Fire(currentuser,"SpawnerUI","Spawned an item without having the permission to do so.",nil,"exploit")
currentuser:Kick("Nice try tho :D")
return false
end
end
game.Players.PlayerAdded:Connect(function(p)
if checkifallowed(p) then
script.SpawnerUI:Clone().Parent = p.PlayerGui
end
end)