blox6137
|
  |
| Joined: 23 Nov 2008 |
| Total Posts: 1109 |
|
|
| 21 Jul 2014 12:43 AM |
local hello = Instance.new("Hint", Workspace) hello.Text = "Hello!"
hello.Parent = nil
game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) if player.msg == ("hello") then hello.Parent = Workspace wait(2) hello.Parent = nil end end) end)
~~~~~~~~~~~~~~~~~~~~~~~~~ It should create a hint when a player enters "hello". |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
| |
|
UncleTaz
|
  |
| Joined: 19 Aug 2009 |
| Total Posts: 12795 |
|
|
| 21 Jul 2014 12:57 AM |
OR!
game:GetService("Players").PlayedAdded:connect(function() h = Instance.new("Hint", game.Workspace) h.Text = "Hello" wait(5) h:remove() end
|
|
|
| Report Abuse |
|
|
UncleTaz
|
  |
| Joined: 19 Aug 2009 |
| Total Posts: 12795 |
|
|
| 21 Jul 2014 12:58 AM |
*
game:GetService("Players").PlayerAdded:connect(function() h = Instance.new("Hint", game.Workspace) h.Text = "Hello" wait(5) h:remove() end) |
|
|
| Report Abuse |
|
|
UncleTaz
|
  |
| Joined: 19 Aug 2009 |
| Total Posts: 12795 |
|
|
| 21 Jul 2014 12:59 AM |
Oh wait, it's a chat function?
Oh :P
Your script works xD
I only read the part under your code. |
|
|
| Report Abuse |
|
|
UncleTaz
|
  |
| Joined: 19 Aug 2009 |
| Total Posts: 12795 |
|
|
| 21 Jul 2014 01:01 AM |
| But you should put the hint inside playergui so it's only to that player |
|
|
| Report Abuse |
|
|
UncleTaz
|
  |
| Joined: 19 Aug 2009 |
| Total Posts: 12795 |
|
|
| 21 Jul 2014 01:03 AM |
game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) if msg == "hello" then h = Instance.new("Hint", player.PlayerGui) h.Text = "Hello :D" wait(2) h:remove() end end) end)
Which is the same thing as your script :P |
|
|
| Report Abuse |
|
|