I need to define a Intvalue (gun) in a player as a variable (g), but I can't seem to get it to work. I need to check it's value, then clone something into the player's backpack based on that value. I know how to clone, just not how to check the IntValue since it is in a player. Also, it can't be in a function.
script to clone based off of value:
if g.Value == 0 then
game.RepicatedStorage.Weapons.Gun1:clone().Parent = player.Backpack
end

1 comment
Oh, I meant I need to clone something into the player's backpack based on it's value. (edited question). Sorry!