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

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

Asked by 6 years ago

~~~~~~~~~~~~~~~~~ ***> *** ~~~~~~~~~~~~~~~~~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

Log in to vote
0
Answered by
Leamir 3138 Moderation Voter Community Moderator
6 years ago

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!

0
Didn't work. ): fjxsidi 0 — 6y
0
Do you have a click detector on the script parent? Leamir 3138 — 6y
0
and changed the var tool Leamir 3138 — 6y
0
I got my cup and there's something called "Clicker" i've put the clickdetector there and the script also. fjxsidi 0 — 6y
View all comments (10 more)
0
And what kind of tool do you mean can we discuss on discord please if you have? fjxsidi 0 — 6y
0
Discord:Nathan#9546 fjxsidi 0 — 6y
0
If you see this please respond I need help ): fjxsidi 0 — 6y
0
I don't have discord :( Leamir 3138 — 6y
0
And the tool is the tool you want to give the player '-' If it is on the ServerStorage use: game.ServerStorage["TOOL NAME"] Leamir 3138 — 6y
0
Yes but do I need to put handle or somethings? fjxsidi 0 — 6y
0
I get the item but it looks like im holding the air how can i fix that? fjxsidi 0 — 6y
0
What should I do? fjxsidi 0 — 6y
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 Leamir 3138 — 6y
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 Leamir 3138 — 6y
Ad

Answer this question