Tool script problem

I’ve been trying for hours for fix this script but i don’t know what is the error.
Tecninally this script when i join to my game the tool appear only to me, and not to the other players, but i don’t actually don’t know why it’s not working i hope someone can help me, thank.

Plus i putted the tool in serverstorage and the script in ServerScriptService.

Here is the Script

local players = {"LittleWolfGX"}
local gear = game.ServerStorage.Scrappy

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(chr)
		for i = 1, #players do
			if players[i] == plr.Name then
				gear:Clone().Parent = plr:WaitForChild("BackPack")
			end
		end
	end)
end)


Please do not ask people to write entire scripts or design entire systems for you. If you can't answer the three questions above, you should probably pick a different category.

A small typo, it’s Backpack, not BackPack.

In case anyone in the table changes their username, their UserId will remain the same, so you can also compare the IDs.

local players = {2453029643}

-- then the if-statement:
if players[i] == player.UserId then
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.