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.