Auto Equip Tool?

image

Probably your tool’s modules being the culprit, can you show me a small clip so I really know it isn’t working?

sorry for the long respond time it takes a while to upload

It’s probably your join/leave script, can you paste the code of that script so I can take a look?

local Players = game:GetService(“Players”)

Players.PlayerAdded:Connect(function(player)
print(player.name … “joined!”)
end)

Players.PlayerRemoving:Connect(function(player)
print(player.Name … " left the game!")
end)

Only conclusion I can come up with is that character added even’t doesn’t fire on join, sometimes it’ll fire on respawn. Can you try respawning and check if the tool is there? So I can update the script.

yea it only works when i respawn, the fix was so simple

nope still only works when i reset, oh wait it doesnt work at all

Updated the script, can you try again?

Updated the script again.

( 30 characters )

Please remember that PlayerAdded may not always fire at Studio. To test it fully, join a live game.

That isn’t really the case here, his game has a lot of objects and this can be the reason since character can load in a little slow.

It is related. If the PlayerAdded isn’t fired, then it can’t create the CharacterAdded event.

Also, if it wasn’t that, then it can be the tool not referencing properly.

It is referenced properly, I’ve tested it my self as well.

the script doesnt even give me the tool

Is the script enabled? Where is the script located?

serverscriptservice 30 character

local Players = game:GetService("Players")

local tool = game.ServerStorage.APS

Players.PlayerAdded:Connect(function(player) 
          player.CharacterAdded:Connect(function(character)
           local humanoid = character:WaitForChild("Humanoid")
           tool:Clone() -- clone the tool
           tool.Parent = player.Backpack-- Clones it to the backpack
           humanoid:EquipTool(tool)
     end)
end)

this one works the best its just that i have to reset for it to work

Let’s try to print debug it. What is print debug? It means we will add a print to a specific line of code. If it printed, it means that line of code is fired.

local Players = game:GetService("Players")

local tool = game.ServerStorage.APS

Players.PlayerAdded:Connect(function(player) 
    print("PlayerAdded Fired")
          player.CharacterAdded:Connect(function(character)
           print("CharacterAdded Fired")
           local humanoid = character:WaitForChild("Humanoid")
           tool:Clone() -- clone the tool
           tool.Parent = player.Backpack-- Clones it to the backpack
           humanoid:EquipTool(tool)
           print("Equipped Tool")
     end)
end)

Run this code and see if the prints are fired.