I want to give certain weapons to only certain ranks, but it's not showing up in game. What's wrong with the script?
This script is in StarterPack as a normal script.
spyglass = game.Lighting.SpyGlass
flintlock = game.Lighting.Flintlock
musket = game.Lighting.Musket
sabre = game.Lighting.Sabre
swab = game.Lighting.Swab
game.Players.PlayerAdded:connect(function(player)
local Rank = player:GetRankInGroup(3291459)
if Rank >=7 then
spyglass:Clone()
spyglass.Parent = player.StarterPack
flintlock:Clone()
flintlock.Parent = player.StarterPack
sabre:Clone()
sabre.Parent = player.StarterPack
end
end)

4 comments
didn't work, should i change StarterPack to backpack maybe?
nope...still doesn't work, if the variables are local would i need to make it a LocalScript?
No, do you have put the script in ServerScriptService?
Because the script work for me