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

I've been trying to clone stuff to the player's inventory please help me if you can?

`~~~~~~~~~~~~~~~~~ ***> ***

`Hello everyone, can anyone help me with the cloning? i want it like whenever someone clicks on the item it gives them the item i've been trying to make it but it won't work It'd be appreciated it if anyone can help me.

1 answer

Hello, fjxsidi!

You can use this script

local tool = game.ServerStorage.Test -- Change to the correct place of the tool

script.Parent.ClickDetector.MouseClick:Connect(function(clicker)
	tool:Clone().Parent = game.Players[clicker.Name].Backpack
end)

Don't forget: This is not a request website!

Good Luck with your games!

14 comments

0

Didn't work. ):

0

Do you have a click detector on the script parent?

0

and changed the var tool

0

I got my cup and there's something called "Clicker" i've put the clickdetector there and the script also.

0

And what kind of tool do you mean can we discuss on discord please if you have?

0

Discord:Nathan#9546

0

If you see this please respond I need help ):

0

I don't have discord :(

0

And the tool is the tool you want to give the player '-' If it is on the ServerStorage use: game.ServerStorage["TOOL NAME"]

0

Yes but do I need to put handle or somethings?

0

I get the item but it looks like im holding the air how can i fix that?

0

What should I do?

0

No, you don't put the handle and to make the player correctly hold the tool, you need to change some int on the tool part

0

No, you don't put the handle and to make the player correctly hold the tool, you need to change some int on the tool part

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