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

How do I make it so I auto equip my tool?

Could anyone help me make it so when people spawn they don't have to click 1 to hold their Linked Sword? Please help me on this I can't find this anywhere. Thank you!

1 comment

0

This is not a request site...

1 answer

I’ve got nothing else to do, so I’ll give it to him anyway. Though, remember, this is not a request site as mentioned. Not a lot of people will be willing to give you the answer you desire if you didn’t try first.

—ServerScript in ServerScriptService

local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(Player)
    local Character = Player.Character or Player.CharacterAdded:Wait()
    if (Character) then
        local Backpack = Player:FindFirstChild("Backpack")
        local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
        if (Backpack and Humanoid) then
            local Tool = Backpack.Tool
            Humanoid:EquipTool(Tool)
        end
    end
end)

If you have any questions about how this program works, don’t hesitate to ask in the comments below. If this works for you, it would be appreciated if you accept the answer.

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