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

How do you give a player a tool from serverstorage?

Don't know how I would go about this... Someone please enlighten me?

1 answer

✓ Accepted answer

The ServerStorage Service is for storing items for the server, not for the player. Like, you would put Maps and stuff in it, instead of using the Lighting for that.

--Place the tool in lighting, then insert something like this
game.Players.PlayerAdded:connect(function(Player)

local cloney = script.Parent:clone() -- clones the tool
cloney.Parent = Player.Backpack --puts the clone of the tool into the players backpack

--Alternatively, you could just put
script.Parent:clone().Parent = Player.Backpack
--I just prefer making the clone a variable. Either way doesn't matter.

end)

 --Connection line is what the player does in order to get the tool. I just did 'PlayerAdded' cause wasn't sure what you needed it for.

2 comments

0

ok, but how do i add a tool to a players backpack?

0

look up. lol

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