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

How do I refer to a Player?

Asked by
PixelYT 30
10 years ago

I'm trying to make a script that will give a player an item when he clicks a GUI..

However I don't know how to state a certain player.

Help please.

2 answers

Log in to vote
0
Answered by
AmiracIe 175
10 years ago

This may help you out: http://wiki.roblox.com/index.php?title=LocalPlayer

To use local player, it must be in a local script. Local player is referring to the player that is using that particular local script. The wiki article I provided has an example.

Ad
Log in to vote
-1
Answered by 10 years ago

This is not a request form, so here.

LOCAL SCRIPT

The script is in lighting You can put it in Starterpack if you want.

gear = script
player = game.Players.LocalPlayer //This is what you want, correct?

gear.Example:Clone()
gear.Example.Parent = player.Backpack

Answer this question