Clicking Gui Button does not give tool

try to define backpack as late as possible so like right before you give the tool try to define backback there

Yeah, that’ll just result in the most recent player being assigned to the ‘player’ variable.

local Game = game
local Players = Game:GetService("Players")
local Player

--Code here.

while true do
	Player = Players.PlayerAdded:Wait()
end