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

Can you help me with my script?

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?

2 answers

✓ Accepted answer

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)

1 comment

0

Where would I put the script?

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)

2 comments

0

Where it says [Where your weapon is located in the explorer] do you mean put where my weapon is?

0

I messed up and fixed it, sorry...

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