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

How would I make a tool a starter tool when you click something on the ground or go over it?

  Hey, I am trying to figure out how to make a tool become a starter tool and go into your backpack when you click a button or step on something to activate it. I am trying to make this go into your backpack so that you have an item to continue the quest. 

I would assume it is something like this.

function onClicked()

local tool = game.ServerStorage.Key1 -- Item in game I am trying to make apart of a local players starter pack and backpack

OnClick = QI --Something that should make the script run if clicking a block named QI
do (tool = local character) -- Tool that I want to be apart of the starter tools in a local player

script.Parent.ClickDetector.MouseClick:connect(onClicked)

This is probably not how it is done, but this is kinda what I am trying to do. Any help?

1 comment

0

Is it important this it's in StarterTool or can it just be in the player's backpack?

1 answer

Add a part inside the tool and name it "Handle". It HAS to be named Handle which will allow you to pick up and equipped the tool.

1 comment

0

Say they reset, how would I put the tool into start tools when picked up?

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