i have some guns thats for my friends but i dont know how to make only them spawn with the guns, the only way i can do right now is using admin
This isn't a request site but whatever.
local Whitelist = {"",""} -- People that will spawn with weapons. local Weapons = {game.ServerStorage["Glock 19"],game.ServerStorage["Glock 21"]} -- Put the location of the guns here. game.Players.PlayerAdded:Connect(function(Player) for i,v in pairs(Whitelist) do if v == Player.Name then for i,v in pairs(Weapons) do local A = v:Clone() A.Parent = Player.Backpack end else end end local C = workspace:WaitForChild(Player.Name) if C.ClassName == "Model" then return true end C.Humanoid.Died:Connect(function() Player:LoadCharacter() wait(.5) for i,v in pairs(Whitelist) do if v == Player.Name then for i,v in pairs(Weapons) do local A = v:Clone() A.Parent = Player.Backpack end else end end end) end)
so idk where to insert the script is it serverscript stuff or where