|
| 23 Jul 2012 12:57 AM |
So this is in a LocalScript in StarterGui and it isn't working, should I just make it a normal script?
game.Players.PlayerAdded:connect(function(p) wait(1) char = script.Parent.Parent.Character playerGui = script.Parent.Parent.PlayerGui local msg = Instance.new("Hint", playerGui) msg.Name = "Hint" msg.Text = "Hello " .. p.Name .. "!" wait(5) playerGui.Hint:Destroy() end) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 23 Jul 2012 02:25 AM |
Wow, anyone?
thecaptain97?? ???? |
|
|
| Report Abuse |
|
|
|
| 23 Jul 2012 02:28 AM |
o-o Put this in the workspace:
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:wait() local h = Instance.new("Hint", player.PlayerGui) h.Text = "Hello "..player.Name.."!" wait(5) h:Destroy() end) |
|
|
| Report Abuse |
|
|
Cheater
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 5258 |
|
|
| 23 Jul 2012 02:32 AM |
For not changing the script too much:
game.Players.PlayerAdded:connect(function(p) wait(1) --char = script.Parent.Parent.Parent.Character --you forgot a parent char = p.Character --I prefer this line instead of the one above, the line is unnecessary anyways playerGui = p.PlayerGui local msg = Instance.new("Hint", playerGui) msg.Name = "Hint" msg.Text = "Hello " .. p.Name .. "!" wait(5) playerGui.Hint:Destroy() end) |
|
|
| Report Abuse |
|
|
|
| 23 Jul 2012 02:34 AM |
| @ElectricAxel, thanks I'll check it in the morning, I am too lazy to open Studio to test it. |
|
|
| Report Abuse |
|
|
| |
|
| |
|