Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can you make a tool be equipped by a player from the very moment they spawn in?

I'm having trouble finding out how to do this, how can you make it so a tool is always equipped from the moment the player spawns in (Basically, so you don't have to press the corresponding number key to equip it and its automatically equipped)

2 answers

✓ Accepted answer

Just like BestCreativeBoy said you can accomplish this with the CharacterAdded function in a ServerScript, if you're confused as to how to do so here is what you do:

local serverstorage = game:GetService("ServerStorage")
local tool = serverstorage:FindFirstChild("Sword") --your tool you want to force equip

game.Players.PlayerAdded:connect(function(player)
	
	player.CharacterAdded:connect(function(char)
		tool:Clone().Parent = char
	end)
end)

Well, the simple way to fix your issue to put the tool in player's Character. In simple words, if you click the number key to equip, it clones the tool at the number to the player's Character. And use CharacterAdded event to detect player respawns (Normal/Server script).

But, your question will be moderated as it is Non-Constructive for future users. Well, you can research and try your methods, if it doesn't work we are here to help!

This discussion is preserved as it was. New answers, comments, and votes are closed.