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
 

how many ends does this need?

Previous Thread :: Next Thread 
just2rock79 is not online. just2rock79
Joined: 30 Dec 2008
Total Posts: 1265
06 Apr 2013 12:27 PM
local Sound1=Instance.new("Sound", game.Workspace)
local Sound2=Instance.new("Sound", game.Workspace)
while true do
Sound1.ID="http://www.roblox.com/asset/?id=27697743"
Sound2.ID="http://www.roblox.com/asset/?id=27697743"
Sound1.IsPlaying=true
Sound2.IsPlaying=false
wait(10)
Sound1.IsPlaying=false
Sound2.IsPlaying=true
wait(10)
end
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
06 Apr 2013 12:28 PM
One.
Report Abuse
just2rock79 is not online. just2rock79
Joined: 30 Dec 2008
Total Posts: 1265
06 Apr 2013 12:29 PM
alright the script won't work

:/
Report Abuse
foreverpower is not online. foreverpower
Joined: 05 Feb 2011
Total Posts: 5578
06 Apr 2013 12:33 PM
local Sound1=Instance.new("Sound", game.Workspace)
local Sound2=Instance.new("Sound", game.Workspace)
while true do
Sound1.ID="http://www.roblox.com/asset/?id=27697743"
Sound2.ID="http://www.roblox.com/asset/?id=27697743"
Sound1.Volume = 1
Sound2.Volume = 1
Sound1:Play()
Sound2:Stop()
wait(10)
Sound1:Stop()
Sound2:Play()
wait(10)
end
Report Abuse
just2rock79 is not online. just2rock79
Joined: 30 Dec 2008
Total Posts: 1265
06 Apr 2013 12:36 PM
can you help me a little bit more

so do I need to have the sounds in the work space, and if so do I put them with the script?

and do I put it in local script or reg script

and if local, do I put it in starter pack
Report Abuse
foreverpower is not online. foreverpower
Joined: 05 Feb 2011
Total Posts: 5578
06 Apr 2013 12:38 PM
local Sound1=Instance.new("Sound", game.Workspace)
local Sound2=Instance.new("Sound", game.Workspace)
while true do
Sound1.SoundId="http://www.roblox.com/asset/?id=27697743"
Sound2.SoundId="http://www.roblox.com/asset/?id=27697743"
Sound1.Volume = 1
Sound2.Volume = 1
Sound1:Play()
Sound2:Stop()
wait(10)
Sound1:Stop()
Sound2:Play()
wait(10)
end

Just put that script in the workspace it should work now.
Report Abuse
foreverpower is not online. foreverpower
Joined: 05 Feb 2011
Total Posts: 5578
06 Apr 2013 12:39 PM
Put in the Workspace as a regular script you don't need to do anything else.
Report Abuse
Ferki is not online. Ferki
Joined: 22 Jan 2013
Total Posts: 968
06 Apr 2013 12:42 PM
The sounds need to be in the workspace before they can play

local Sound1=Instance.new("Sound", game.Workspace)
local Sound2=Instance.new("Sound", game.Workspace)
while true do
Sound1.SoundId="http://www.roblox.com/asset/?id=27697743"
Sound2.SoundId="http://www.roblox.com/asset/?id=27697743"
Sound1.Volume = 1
Sound2.Volume = 1
Sound1.Name = ("Sound1")
Sound1.Parent = game.Workspace
Sound1:Play()
Sound2:Stop()
wait(0.1)
game.Workspace.Sound1:Remove()
wait(10)
Sound2.Name = ("Sound2")
Sound2.Parent = game.Workspace
Sound1:Stop()
Sound2:Play()
wait(0.1)
game.Workspace.Sound2:Remove()
wait(10)
end

This should Work, If not remove the "game.Workspace.Sound1:Remove()" lines
Report Abuse
foreverpower is not online. foreverpower
Joined: 05 Feb 2011
Total Posts: 5578
06 Apr 2013 12:45 PM
They already were in the Workspace did you not notice the Instance.new("Sound",game.Workspace) the old code worked fine.
Report Abuse
just2rock79 is not online. just2rock79
Joined: 30 Dec 2008
Total Posts: 1265
06 Apr 2013 02:48 PM
Thank you very much guys.
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