local GlobalVariable = ("VincentBarzini") -- This is my UserName aka Global Variable called later on local function OwnerEntered() -- Function to start when I enter the server a = game.Players:GetPlayers("VincentBarzini") -- get players whose name is VincentBarzini if a == true --[[If this is totally equal to Vincent Barzini then Add the tool "Lucky" to the parent of global variable's Startergear aka VincentBarzini]] then game.Lighting.Lucky.Parent = game.Players.GlobalVariable.StarterGear end end
The problem is here:
game.Players.GlobalVariable.StarterGear
because you when you type this, it is searching for something named "GlobalVariable" in game.Players. To fix it, just replace that with this:
game.Players:FindFIrstChild(GlobalVariable).Backpack
Another error that is fixed in this: StarterGear does not exist within a player, the player tool storage is called Backpack. StarterGear is used to set starter gear, as the name implies.
Also, the ('s in local GlobalVariable = ("VincentBarzini")
aren't necessary.