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
 

Re: Help needed!

Previous Thread :: Next Thread 
HeadlessHorror is not online. HeadlessHorror
Joined: 05 Dec 2011
Total Posts: 505
25 Jan 2015 11:32 AM
Hello, I need help- I am trying to make a script so the text on my screengui changes every 0.1 of a second, if you could use math.random that would be awesome!

(( I suck at scripting so it would be a huge favour ))

Thanks,
-HeadlessHorror

"Its not about giving up, its about trying again."-HeadlessHorror
Report Abuse
Crythox is not online. Crythox
Joined: 03 Oct 2011
Total Posts: 1188
25 Jan 2015 11:34 AM
In the text label.

I can't think of a more efficient way to do this



local list = {"","","","","","","","","",""}
local num = 1

while true do
wait(math.random(.1,1.3))
script.Parent.Text = list[num]
num = num + 1
if list[num] == nil then
num = 1
end
end


Add as many texts as you want in the list table.
Report Abuse
HeadlessHorror is not online. HeadlessHorror
Joined: 05 Dec 2011
Total Posts: 505
25 Jan 2015 11:45 AM
I think I messed up, I meant the colour changes every 0.1 second.
Report Abuse
Crythox is not online. Crythox
Joined: 03 Oct 2011
Total Posts: 1188
25 Jan 2015 12:32 PM
while true do
wait(math.random(.1,.3))
script.Parent.Color3 = Color3.new(math.random()/255,math.random()/255,math.random()/255)
end


No worries
Report Abuse
BowtieMod is not online. BowtieMod
Joined: 01 Apr 2013
Total Posts: 804
25 Jan 2015 12:35 PM
script.Parent.Color3 = BrickColor.Random().Color3

make shorter
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