Jayviator
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 177 |
|
|
| 04 Mar 2017 05:44 PM |
| so I need this brick to change colour and material at 23:00 then goes back to normal |
|
|
| Report Abuse |
|
|
SpliTech
|
  |
| Joined: 06 Feb 2013 |
| Total Posts: 11407 |
|
|
| 04 Mar 2017 05:50 PM |
try changing its properties when minutesAfterMidnight = 23 * 60 and back when minutesAfterMidnight = [hours here] * 60
nemesis is pissed |
|
|
| Report Abuse |
|
|
Jayviator
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 177 |
|
|
| 04 Mar 2017 05:54 PM |
ok so I need it to be Neon and New Yeller
then after 23:00 and before, Smooth plastic and Light blue |
|
|
| Report Abuse |
|
|
Jayviator
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 177 |
|
| |
|
|
| 04 Mar 2017 06:02 PM |
| so you need it to change colors at ## minutes or seconds? or hours? |
|
|
| Report Abuse |
|
|
Jayviator
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 177 |
|
|
| 04 Mar 2017 06:03 PM |
so like I have eiss admin and you can do :time 23 and :time 07
so I would like the brick to change material and colours at those times |
|
|
| Report Abuse |
|
|
|
| 04 Mar 2017 06:04 PM |
https://forum.roblox.com/Forum/ShowForum.aspx?ForumID=33
|
|
|
| Report Abuse |
|
|
Jayviator
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 177 |
|
| |
|
SpliTech
|
  |
| Joined: 06 Feb 2013 |
| Total Posts: 11407 |
|
|
| 04 Mar 2017 06:07 PM |
to change its colours, use #code [whatever variable you use for the brick].BrickColor.New('New Yeller')
to change the material, use #code [brick here].Material.Neon (...i think, if not, you can go to the properties menu and correct me)
and after the second minutesAfterMidnight "trigger", do the same thing but with the new properties
nemesis is pissed |
|
|
| Report Abuse |
|
|
Jayviator
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 177 |
|
|
| 04 Mar 2017 06:12 PM |
| sort of confused, can you link it together for me? |
|
|
| Report Abuse |
|
|
Jayviator
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 177 |
|
| |
|
Jayviator
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 177 |
|
| |
|
Jayviator
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 177 |
|
| |
|
|
| 04 Mar 2017 06:56 PM |
do you mean seconds or minutes or anything??? i dont know what you mean
|
|
|
| Report Abuse |
|
|
Jayviator
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 177 |
|
|
| 04 Mar 2017 06:58 PM |
| I mean like time, the time in game stays the same it's just when I want to change the time to 23:00, I want the brick to change colour and material |
|
|
| Report Abuse |
|
|
SpliTech
|
  |
| Joined: 06 Feb 2013 |
| Total Posts: 11407 |
|
|
| 05 Mar 2017 12:06 PM |
so basically
you'd call the first minutesAfterMidnight trigger, then change the properties then you'd do the same for the second one kinda like this
assuming the variable for the brick is "part" #code if minutesAfterMidnight = (23 * 60) then part.BrickColor.New('New Yeller') part.Material('Neon')
and to change it back after this, assuming you're changing it back at midnight, you'd put #code if minutesAfterMidnight = (0) then part.BrickColor.New('Light blue') part.Material('Smooth plastic') i might have messed up on some of the properties cause i havent touched studio in a while
nemesis is pissed |
|
|
| Report Abuse |
|
|
Jayviator
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 177 |
|
|
| 05 Mar 2017 01:19 PM |
| in the first part, the text turns green but not in the second part |
|
|
| Report Abuse |
|
|
Jayviator
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 177 |
|
| |
|