generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Why does this not work?

Previous Thread :: Next Thread 
blox6137 is not online. 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 is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
21 Jul 2014 12:52 AM
if msg == "hello" then
Report Abuse
UncleTaz is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image