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

How would I transfer an item from server to client?

Asked by
Nixvoid 12
5 years ago

I've been battling the issue for a very long time and have been doing independent research in attempts of resolving it. Nothing I've found helps.

Basically, I'm trying to write a line of code where when the player clicks a button, the server transfers the gear from the StarterPack to the player's Backpack. Everything in the code works apart from the transfer.

If anyone knows a good solution, please send a response. It would be greatly appreciated!

0
scripts? brok4d 77 — 5y
0
Hah, funny. Nixvoid 12 — 5y
0
game.StarterPack.gear:Clone().Parent = game.Players.Nixvoid.Backpack Vulkarin 581 — 5y
0
No. That was part of the code and didn't work. Nixvoid 12 — 5y
View all comments (4 more)
0
I do not see how funny brok4d 77 — 5y
0
Hmm okay then try this, game.StarterPack.gear:Clone().Parent = game.Players.Nixvoid.Character Vulkarin 581 — 5y
0
Thank you, Vulkarin. The code works. Nixvoid 12 — 5y
0
You welcome Vulkarin 581 — 5y

Answer this question