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

HowdoImakeapartthatwhenits clicked it change to a tool and clones into the clickers inventory?

Asked by
iuclds 720 Moderation Voter
4 years ago

How do I make a part that when its clicked it changes to a tool and clones into the clickers inventory?

0
use a click detector theking48989987 2147 — 4y

1 answer

Log in to vote
1
Answered by
karlo_tr10 1233 Moderation Voter
4 years ago

Insert ClickDetector inside part then insert Script inside part and paste this:

local part = script.Parent
script.Parent.ClickDetector.MouseClick:Connect(function(Player)
    local tool = Instance.new("Tool")
    part.Parent = tool
    part.Anchored = false
    part.Name = "Handle"
    part.ClickDetector:Destroy()
    tool.Parent = Player.Backpack
end)

Note: This will only work for a single part item (In case it has multiple parts you will need to weld and move all parts to tool)

0
That's also a way to do it but in case he will use this for sword or something it's important for him to have seperated parts. And tools usually have welds. karlo_tr10 1233 — 4y
Ad

Answer this question