Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago
Edited 5 years ago
  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?

0
Is it important this it's in StarterTool or can it just be in the player's backpack? sebse456 13 — 5y

1 answer

Log in to vote
0
Answered by
Sorukan 240 Moderation Voter
5 years ago
Edited 5 years ago

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.

0
Say they reset, how would I put the tool into start tools when picked up? Yosufgamer -7 — 5y
Ad

Answer this question