wohoo1997
|
  |
| Joined: 28 Jan 2011 |
| Total Posts: 9101 |
|
|
| 24 Aug 2014 05:04 PM |
i need help with changing audios at certain times for my rpg game at certain times...
night and day (i have day done, i just need it to change), dungeons, and bosses.
how can i do this? |
|
|
| Report Abuse |
|
|
NotedDown
|
  |
| Joined: 24 Sep 2013 |
| Total Posts: 238 |
|
|
| 24 Aug 2014 05:06 PM |
if day = true then sound plays now if night = true then sound plays now for iv in pair +_G - lookAngles+cframe-*angles.c67 + weld - camreatype = script while true do night + end
end end))))) |
|
|
| Report Abuse |
|
|
ForceSky
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 2379 |
|
|
| 24 Aug 2014 05:07 PM |
if statements.
while wait() do if game.Lighting.TimeOfDay == NIGHTTIME START then
elseif game.Lighting.TimeOfDay == DAYTIME START then
end end
for the dungeons and bosses it would have to be different based on your game. |
|
|
| Report Abuse |
|
|
wohoo1997
|
  |
| Joined: 28 Jan 2011 |
| Total Posts: 9101 |
|
|
| 24 Aug 2014 05:09 PM |
@force, should i put in a certain wait time? im kind anew to scripting. i can only script single sounds and disaster games so far really. |
|
|
| Report Abuse |
|
|
wohoo1997
|
  |
| Joined: 28 Jan 2011 |
| Total Posts: 9101 |
|
|
| 24 Aug 2014 05:25 PM |
| oh, i also forgot to mention i wanna play a victory audio for when you beat a boss |
|
|
| Report Abuse |
|
|