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
|
  |
| 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 |
|
|
|
| 14 May 2016 06:02 PM |
| Do you have to put double equal signs? |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 14 May 2016 07:16 PM |
Read the WHOLE tutorial.
R$0 << look how poor i am |
|
|
| Report Abuse |
|
|