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: how do i play a sound thats in a script

Previous Thread :: Next Thread 
tekkr is not online. tekkr
Joined: 30 Dec 2013
Total Posts: 3570
03 Feb 2014 05:01 PM
please help
Report Abuse
tekkr is not online. tekkr
Joined: 30 Dec 2013
Total Posts: 3570
03 Feb 2014 05:03 PM
bump
Report Abuse
xDeathBear is not online. xDeathBear
Joined: 09 Jul 2010
Total Posts: 1657
03 Feb 2014 05:04 PM
What do you mean
Report Abuse
tekkr is not online. tekkr
Joined: 30 Dec 2013
Total Posts: 3570
03 Feb 2014 05:05 PM
so i have this script and theres a sound in it and i want the sound to play by using the script (parent)
Report Abuse
xDeathBear is not online. xDeathBear
Joined: 09 Jul 2010
Total Posts: 1657
03 Feb 2014 05:06 PM
sound = game.Workspace.Script.(whatever)

Then play the sound..
Report Abuse
tekkr is not online. tekkr
Joined: 30 Dec 2013
Total Posts: 3570
03 Feb 2014 05:09 PM
?
Report Abuse
coolblox2334 is not online. coolblox2334
Joined: 10 Dec 2010
Total Posts: 4605
03 Feb 2014 05:41 PM
sound:play()
Report Abuse
ChosenDreamer is not online. ChosenDreamer
Joined: 23 Oct 2013
Total Posts: 15580
03 Feb 2014 05:58 PM
local times = {112, 109} -- There are currently 2 sounds, and those are their length. Put the sounds inside the script

for i, t in ipairs(times) do
local sound = script["Sound_" .. i]
sound:Play()
end

wait(10)

while true do -- loop
for i, t in ipairs(times) do
local sound = script["Sound_" .. i]
sound:Play()
wait(t)
end
end
Report Abuse
coolblox2334 is not online. coolblox2334
Joined: 10 Dec 2010
Total Posts: 4605
04 Feb 2014 06:39 AM
@chosendumber


Stop it, stupid.

Actually try to make it simple.

game.Workspace.Sound:Play() is all you need, not that garbage.
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