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 » Scripting Helpers
Home Search
 

Re: Making a sound play at a certain part?

Previous Thread :: Next Thread 
Kampfkarren is not online. Kampfkarren
Joined: 15 Feb 2014
Total Posts: 1903
26 Apr 2014 02:42 PM
Let's say I have a sound, and I wanna play it at 1:32
is this possible?

I mean Venusaur...with a question mark - Add like 15000 to my post count - Alt of boynedmaster
Report Abuse
gijsbel11 is not online. gijsbel11
Joined: 07 Feb 2009
Total Posts: 4223
26 Apr 2014 02:45 PM
1:32 as in Lighting time?

because then is would be something like

while wait() do
if game.Lighting.TimeOfDay == "01:32:00" then
--play sound
end
end

Report Abuse
Kampfkarren is not online. Kampfkarren
Joined: 15 Feb 2014
Total Posts: 1903
26 Apr 2014 02:47 PM
how do you interpret what i said to mean lighting time

I mean Venusaur...with a question mark - Add like 15000 to my post count - Alt of boynedmaster
Report Abuse
Meowth552 is online. Meowth552
Joined: 17 Dec 2009
Total Posts: 2181
26 Apr 2014 02:47 PM
Gijs is god-tier helper! :)
Report Abuse
Kampfkarren is not online. Kampfkarren
Joined: 15 Feb 2014
Total Posts: 1903
26 Apr 2014 02:48 PM
@meowth
is this sarcasm or

I mean Venusaur...with a question mark - Add like 15000 to my post count - Alt of boynedmaster
Report Abuse
gijsbel11 is not online. gijsbel11
Joined: 07 Feb 2009
Total Posts: 4223
26 Apr 2014 02:49 PM
@Kampfkarren,

Well i'm uncertain what you mean by "at 1:32"
Do you mean real-time?
Do you mean minutes:seconds passed in game?
Do you mean hours:minutes time as in roblox skybox?
Report Abuse
Kampfkarren is not online. Kampfkarren
Joined: 15 Feb 2014
Total Posts: 1903
26 Apr 2014 02:50 PM
@gjs
if i'm referring to sounds
and i give a time
that i want to play at
is it not obvious it's minutes:seconds
like

I mean Venusaur...with a question mark - Add like 15000 to my post count - Alt of boynedmaster
Report Abuse
Kampfkarren is not online. Kampfkarren
Joined: 15 Feb 2014
Total Posts: 1903
26 Apr 2014 02:51 PM
wait you didnt even say what i meant
i mean play the song at the 1:32 mark

I mean Venusaur...with a question mark - Add like 15000 to my post count - Alt of boynedmaster
Report Abuse
gijsbel11 is not online. gijsbel11
Joined: 07 Feb 2009
Total Posts: 4223
26 Apr 2014 02:56 PM
Oh jesus i'm stupid, sorry. You mean to start playing the sound at the 1:32 mark of the soundclip?

well that is actually impossible.
The only way to do this is to make it silent, and make it not-silent when the time is right so :

sound.Volume = 0
sound:Play()
wait(1+(32/60))
sound.Volume = 10


Report Abuse
Kampfkarren is not online. Kampfkarren
Joined: 15 Feb 2014
Total Posts: 1903
26 Apr 2014 02:57 PM
really
thats the only way
wow lua is terrible
welp guess there's no way i can do what i want

I mean Venusaur...with a question mark - Add like 15000 to my post count - Alt of boynedmaster
Report Abuse
gijsbel11 is not online. gijsbel11
Joined: 07 Feb 2009
Total Posts: 4223
26 Apr 2014 02:57 PM
WOOPS with the last example the timing is wrong, this one works :


sound.Volume = 0
sound:Play()
wait(1*60+32)
sound.Volume = 10
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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