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

How can I make it so if your a specific rank you spawn with tools?

Asked by 4 years ago

Also, If you can. Can you make it so they spawn with specific clothing? Thanks.

local AK47 = game.ServerStorage['AK-47']
local Glock17 = game.ServerStorage['Glock17']
local M4A1 = game.ServerStorage['M4A1']
local MiniGun = game.ServerStorage['Minigun']
local RPG = game.ServerStorage['RPG']
local Tech9 = game.ServerStorage['Tech-9']

function onPlayerSpawned(player)
    if player:GetRankInGroup(6756481) <= 2 then
        Glock17:Clone().Parent = player.Backpack
    end
    if player:GetRankInGroup(6756481) <= 7 then
        Tech9:Clone().Parent = player.Backpack
    end
    if player:GetRankInGroup(6756481) <= 13 then
        AK47:Clone().Parent = player.Backpack
    end
    if player:GetRankInGroup(6756481) <= 246 then
        MiniGun:Clone().Parent = player.Backpack
        RPG:Clone().Parent = player.Backpack
    end
end

Answer this question