The ‘Tool’ object allows players to equip tools from their backpack and when it’s parented to their character. The player will automatically pick up tools when they come in contact with them.
local tool = game.Workspace.Tool:Clone() --change "Workspace" to wherever your tool is and continue going down the children if it is in another thing, and change "Tool" to the name of your tool. This is cloning the tool
script.Parent.Touched:Connect(function(part) -- check if the part has been touched, then run the function. The part is the part tha touched this part
if part.Parent:FindFirstChild("Humanoid") then -- check if the part has a sibling called "Humanoid" humanoid is only in characters
tool.Parent = part.Parent -- put the tool in the players character, this makes it start equiped.
end
end)
I have added comments (as you can see) to make it explained and customizable
It’ll help a lot for my experience so can I please put your avatar somewhere in my experience using AlreadyPro’s plugin and make a “you met @Waffle_Gamer6” badge? (Like this people will know you helped a lot!)
No problem! But I’m not sure about that because my game isn’t famous, it’s a fangame of the game Slap Battles (maybe you know it), and my game is only in very early BETA phase (almost not anything works)…
yeah, It may be unpopular but is still good for the players who do play. My game, Uncertain Hall, is mostly just my friends and sometimes a random person if a lot of my friends are playing it.
That’s the same. I sometimes get players who aren’t my friends but that’s players who typed “Slap Battles” in the search bar and found my game (I don’t know, maybe they like the game icon).
Yes, that’s a good thing when you make a fangame of a game.
Also actually the game is in very early BETA phase but when I’ll add your script the game will become in early BETA phase so if you want the “You played during very early BETA” badge, play quickly!
That’s ok! I don’t like to use models, but it does not mean its bad to use them, just make sure to check all scripts that are part of the model. Roblox does have a feature that shows how many scripts are in the model that you are about to insert.