So I basically want to make a script that will give a certain person a weapon I made butt so far I don't have any idea what to do. So can someone help me?
So you would so something along the lines of this:
1 | game.Players.PlayerAdded:connect( function (player) |
2 | wait() |
3 | if player.Name = = "PLAYERNAMEHERE" then |
4 | game.Lighting [ "YOUR WEAPON NAME HERE" ] :clone().Parent = player.Backpack |
5 | end ) |
Put in a Global Script:
1 | game.Players.PlayerAdded:connect( function (p) |
2 | p:WaitForDataReady() |
3 | if p.Name = = "nameofperson" then |
4 | weapon:clone().Parent = p.StarterPack -- weapon must be a tool! |
5 | end |
6 | end ) |
Closed as Not Constructive by evaera
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?