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
10 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 10 years ago

So you would so something along the lines of this:

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

Put in a Global Script:

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