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

Can you help me with my script? [closed]

Asked by
red106 0
11 years ago

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?

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?

2 answers

Log in to vote
0
Answered by 11 years ago

So you would so something along the lines of this:

1game.Players.PlayerAdded:connect(function(player)
2wait()
3if player.Name == "PLAYERNAMEHERE" then
4game.Lighting["YOUR WEAPON NAME HERE"]:clone().Parent = player.Backpack
5end)
0
Where would I put the script? red106 0 — 11y
Ad
Log in to vote
0
Answered by
gskw 1046 Moderation Voter
11 years ago

Put in a Global Script:

1game.Players.PlayerAdded:connect(function(p)
2p:WaitForDataReady()
3if p.Name=="nameofperson" then
4weapon:clone().Parent=p.StarterPack -- weapon must be a tool!
5end
6end)
0
Where it says [Where your weapon is located in the explorer] do you mean put where my weapon is? red106 0 — 11y
0
I messed up and fixed it, sorry... gskw 1046 — 11y