Ad
Log in to vote
0

How do you give a player a tool from serverstorage?

Asked by 7 years ago

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

1 answer

Log in to vote
0
Answered by 7 years ago

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.
0
ok, but how do i add a tool to a players backpack? Shaydesilva 85 — 7y
0
look up. lol infalliblelemon 145 — 7y
Ad

Answer this question