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

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

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

✓ Accepted answer

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.

1 comment

0

OMG Thanks so much!

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

2 comments

0

Rename the part "Handle". There is also a property I think that stops it from being picked up.

0

1)You mean renaming Tool to Handle? 2)Cant find that property ;-;

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

2 comments

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.

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

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..

1 comment

0

What do you mean? I cant find that option >_<

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