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: Change Material on Special time : Help!

Previous Thread :: Next Thread 
EkinoTz is not online. EkinoTz
Joined: 27 Mar 2016
Total Posts: 5
14 May 2016 05:21 PM
How the Subject says i need help for a script that change the Material of that Part on a special time like on 6:00:00 it is Plastic and on 18:00:00 its Neon. How could be the script? Im frustrated atm at this script.. >.<
Report Abuse
EkinoTz is not online. EkinoTz
Joined: 27 Mar 2016
Total Posts: 5
14 May 2016 06:00 PM
Ok got it. For some who wants to know how :



if game.Lighting.TimeOfDay == ("06:00:00") then -- checks for 6AM

game.Workspace.Part.Material = Enum.Material.Plastic
game.Workspace.Part.PointLight.Enabled = false

end

if game.Lighting.TimeOfDay == ("18:00:00") then -- checks for 6PM

game.Workspace.Part.Material = Enum.Material.Neon
game.Workspace.Part.PointLight.Enabled = true

end


Report Abuse
CrypticFormula is not online. CrypticFormula
Joined: 02 Jul 2009
Total Posts: 302
14 May 2016 06:02 PM
Do you have to put double equal signs?
Report Abuse
Jammer622 is not online. Jammer622
Joined: 19 Nov 2008
Total Posts: 1739
14 May 2016 06:19 PM
http://wiki.roblox.com/index.php?title=Operator

To see if two things match, it takes a == operator. Likewise, it takes a ~= operator to see if they don't match. A single = should only be used when setting one thing to another, not when comparing them.
Report Abuse
HalfPinky456 is not online. HalfPinky456
Joined: 10 Apr 2011
Total Posts: 6236
14 May 2016 07:16 PM
Read the WHOLE tutorial.


R$0 << look how poor i am
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