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

What is the script that gives players the item?

Asked by 3 years ago

I am the initial developer and just started scripting the guts of the game. I need a script (not local) which I will put in the game scripts that will give all players an item with the name "cheese". "Cheese" is put in "ServerStorage" but I can change it. I know the quest is quite simple, but all the other tutorials and scripts refer to one player or don't work at all.

1 answer

Log in to vote
2
Answered by 3 years ago

not sure what you mean and this sounds like a bit of a request but I'm assuming you mean this:


local Item = game:GetService'ServerStorage'.Cheese for i,v in pairs(game:GetService'Players':GetPlayers()) do local BP = v.Backpack Item:Clone().Parent = BP end
Ad

Answer this question