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

How do I make a script where it adds items to a player's inventory?

Asked by 9 years ago

Okay, so I'm making a game, and I want it to be where, when you cut down a tree (I already have that coded), you get wood in your player inventory/backpack. I'm not a bad scripter, and I'm sure I could figure it out. But I don't really know where to start.

Can anyone help me?

1 answer

Log in to vote
0
Answered by
qwrn12 85
9 years ago
local player=game.Players.LocalPlayer
player.Backpack

this is how you get to backpack then you clone whatever your trying to clone to the backpack

game.Workspace.toolnamehere:Clone().Parent = wherever your trying to place it

that is if it is in the workspace

0
oh, ok. thx anjaclawnova 10 — 9y
Ad

Answer this question