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

How to make tool not pick able on touch? Please answer!

Asked by 6 years ago
Edited 6 years ago

My first time asking a question on this website so dont judge!

So... Im making a game bla bla bla... And there is like a key (used to open a door). That key also has a script whitch allows the key to be in inventory when clicked and it works perfectly fine but there is one problem unsolved...

My question is - how to make that key (tool) not able for players to be picked up on touch?

Please help! I would appreciate any correct answer!

4 answers

Log in to vote
0
Answered by 6 years ago

Tools are inherently meant to be picked up, so instead of working around how a Tool is meant to work, just create a dummy model of the tool and put the ClickDetector inside with a Script that gives a copy of the real tool when clicked.

0
OMG Thanks so much! ROLANBLOX 4 — 6y
Ad
Log in to vote
0
Answered by
H4X0MSYT 536 Moderation Voter
6 years ago

There is a property of the tool instance. I forgot its name, but it relates to it being able to be picked up.

0
Rename the part "Handle". There is also a property I think that stops it from being picked up. Alphaminusone 0 — 6y
0
1)You mean renaming Tool to Handle? 2)Cant find that property ;-; ROLANBLOX 4 — 6y
Log in to vote
0
Answered by 6 years ago

il try to help

tool = script.Parent-- the tool
while true do -- to check if a player has the tool
wait(1) -- wait 1 second
for i,v in next, game.Players:GetChildren() do
if v.Backpack:FindFirstChild("ToolNameHere") then
v.Backpack.ToolNameHere:Remove()
end
end
end
0
I don't know if that's what he/she wants... but I'm pretty sure this won't work. You're removing the tool from the player's backpack after it's being picked up. 0msh 333 — 6y
0
St_arks yeah... That doesnt really help me cuz if Player will pick it up, the key will be gone... Also im a boy XD ROLANBLOX 4 — 6y
Log in to vote
0
Answered by
Choobu 59
6 years ago

You could just go over to properties and they might be a option to not be able to pick up to save time and having to go and script..

0
What do you mean? I cant find that option >_< ROLANBLOX 4 — 6y

Answer this question