of     1   

Sheepguest321
#227575741Wednesday, November 15, 2017 1:06 PM GMT

So I don't know much of Lua. By that I mean I don't know how to script but I just would like to know for my one game, does anyone have a script where you pick a click detector in a item and when you click it, it gives you the item and the item on the ground disappears and appears only a minute later? Please help.
Sheepguest321
#227575796Wednesday, November 15, 2017 1:09 PM GMT

Bump
LuluPls
#227576036Wednesday, November 15, 2017 1:24 PM GMT

what do you mean by "it gives you the item". Do you have an inventory system? Is it a tool?
AIexandxr
#227576168Wednesday, November 15, 2017 1:33 PM GMT

what do you think he means... R$#inf
LuluPls
#227576185Wednesday, November 15, 2017 1:34 PM GMT

I don't know. That's why I'm asking.
Sheepguest321
#227576363Wednesday, November 15, 2017 1:47 PM GMT

I have a card. It's on the floor, if you press it sends it to your inventory and the card disappears off the floor and then you gotta wait a minute for it to respawn.
Sheepguest321
#227576374Wednesday, November 15, 2017 1:48 PM GMT

It's a tool, I put it in lighting and server storage
LuluPls
#227576525Wednesday, November 15, 2017 1:58 PM GMT

Well first of all, if you want to pick it up by clicking it, you will want to take the parts inside that tool and make it into a model. Put that in workspace, and put a click detector in each part, along with this script: script.Parent.ClickDetector.MouseClick:connect(function(plr) c=game.Lighting:FindFirstChild("NAMEOFYOURTOOL"):Clone() c.Parent=plr.Backpack script.Parent.Parent:Destroy() end)
TaaRt
#227576544Wednesday, November 15, 2017 2:00 PM GMT

A ClickDetector parented to a model will make all parts within that model react to clicks for it
Sheepguest321
#227587788Wednesday, November 15, 2017 10:58 PM GMT

But, you see. This is what my developer did but I want the card to disappear after you click it for a minute
LuluPls
#227605728Thursday, November 16, 2017 2:33 PM GMT

If you have a script in each part use this: script.Parent.ClickDetector.MouseClick:connect(function(plr) c=game.Lighting:FindFirstChild("NAMEOFYOURTOOL"):Clone() c.Parent=plr.Backpack script.Parent.Parent.Parent=game.Lighting wait(60) script.Parent.Parent.Parent=game.Workspace end) If you did what TaaRT suggested and put the clickdetector and script in the model itself instead of each part (which I agree with) use this: script.Parent.ClickDetector.MouseClick:connect(function(plr) c=game.Lighting:FindFirstChild("NAMEOFYOURTOOL"):Clone() c.Parent=plr.Backpack script.Parent.Parent=game.Lighting wait(60) script.Parent.Parent=game.Workspace end)
Sheepguest321
#227616561Thursday, November 16, 2017 10:33 PM GMT

Thanks it works!

    of     1