Xheng
|
  |
| Joined: 28 Apr 2013 |
| Total Posts: 158 |
|
|
| 19 May 2013 08:21 AM |
function entered(plr) p = Instance.new("Hint", plr.PlayerGui) p.Text = "Hello".. plr.Name end
game.Players.PlayerAdded:connect(entered) |
|
|
| Report Abuse |
|
|
Xheng
|
  |
| Joined: 28 Apr 2013 |
| Total Posts: 158 |
|
|
| 19 May 2013 08:24 AM |
| Output: PlayerGui is not a valid member of Player |
|
|
| Report Abuse |
|
|
|
| 19 May 2013 08:26 AM |
lolwut? try this function entered(plr) p = Instance.new("Hint", plr.Workspace) p.Text = "Hello".. plr.Name end
game.Players.PlayerAdded:connect(entered)
~My mom said I can be anything, So I became a CLOWN~ |
|
|
| Report Abuse |
|
|
Xheng
|
  |
| Joined: 28 Apr 2013 |
| Total Posts: 158 |
|
|
| 19 May 2013 08:27 AM |
| Workspace isn't a member of the player... |
|
|
| Report Abuse |
|
|
toadjesse
|
  |
| Joined: 03 Jun 2008 |
| Total Posts: 5617 |
|
|
| 19 May 2013 08:28 AM |
| Xheng the player is Players or Player1 ? |
|
|
| Report Abuse |
|
|
Xheng
|
  |
| Joined: 28 Apr 2013 |
| Total Posts: 158 |
|
|
| 19 May 2013 08:29 AM |
| I have no clue but it only said Player no s or Player1 the default test character. |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 19 May 2013 08:30 AM |
It's the player that joined.
Use this:
game.Players.PlayerAdded:connect( function(plr) if not plr:FindFirstChild("PlayerGui") then repeat wait() until plr:FindFirstChild("PlayerGui") end local h = Instance.new("Hint", plr.PlayerGui) h.Text = "Hello, "..plr.Name game.Debris:AddItem(h, 5) end) |
|
|
| Report Abuse |
|
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
|
| 19 May 2013 08:31 AM |
function entered(plr) wait() p = Instance.new("Hint", plr.PlayerGui) p.Text = "Hello".. plr.Name end
game.Players.PlayerAdded:connect(entered)
|
|
|
| Report Abuse |
|
|
Xheng
|
  |
| Joined: 28 Apr 2013 |
| Total Posts: 158 |
|
|
| 19 May 2013 08:33 AM |
| They both work thanks guys. |
|
|
| Report Abuse |
|
|
toadjesse
|
  |
| Joined: 03 Jun 2008 |
| Total Posts: 5617 |
|
| |
|