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 » Scripters
Home Search
 

Quick question

Previous Thread :: Next Thread 
notnin is not online. notnin
Joined: 07 Nov 2013
Total Posts: 436
14 Dec 2013 12:26 PM
DisplayMessageTime = 2
Set1 = {"Play was handeled"}
Set2 = {"cleanly", "cleanly", "cleanly", "not cleanly", "cleanly"}
Set3 = {"Throw was clean", "Throw was clean", "Throw was clean", "Throw was clean", "Throw was clean", " Throw was not clean"}
while true do
if(message == "1") then
X = Set1[math.random(1, #Set1)]
Y = Set2[math.random(1, #Set2)]
Z = Set3[math.random(1, #Set3)]
local msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = "" ..X.. " " ..Y.. " " ..Z.. "!"
wait(DisplayMessageTime)
wait (5)
msg:Remove()

end

taking a while for scripting helpers to help, but how come a message won't appear when i say 1
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
14 Dec 2013 12:45 PM
Still doesn't mean it belongs here.

As for you problem, it's hard to say... I don't see 'message' defined anywhere.
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
14 Dec 2013 01:14 PM
Set2 = {"cleanly", "cleanly", "cleanly", "not cleanly", "cleanly"}
if(message == "1") then
msg.Text = "" ..X.. " " ..Y.. " " ..Z.. "!"
wait (5)


All these lines are... just wat.

#1 - you have 4 strings with the same text.
#2 - message is undefined. Bad use of brackets.
#3 - "" .. is completely unnecessary.
#4 - You've waited the message duration. Now, let's wait a bit longer, eh?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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