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: Script messed up?

Previous Thread :: Next Thread 
Meowcatmaster is not online. Meowcatmaster
Joined: 20 Oct 2012
Total Posts: 769
17 Jun 2014 11:57 AM
if
Tally1.Value > Tally2.Value then
local sound=Instance.new("Sound")
sound.Parent = game.Workspace
sound.SoundId = "http://www.roblox.com/asset/?id=130844430"
sound.Archivable = false
wait(120)
sound:Destroy()
What's messed up with it?
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
17 Jun 2014 11:57 AM
sound.Archivable = false

Remove this line
Report Abuse
domorox17 is not online. domorox17
Joined: 06 Mar 2012
Total Posts: 1710
17 Jun 2014 11:58 AM
Add an end at the end as well.
Report Abuse
Meowcatmaster is not online. Meowcatmaster
Joined: 20 Oct 2012
Total Posts: 769
17 Jun 2014 12:00 PM
This isn't the whole script.
Let me grab the whole script.
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
17 Jun 2014 12:00 PM
No just remove the archivable line, making it false doesnt let you destroy it(Im pretty sure thats how it works)
Report Abuse
Meowcatmaster is not online. Meowcatmaster
Joined: 20 Oct 2012
Total Posts: 769
17 Jun 2014 12:01 PM

while true do
if
Tally1.Value > Tally2.Value then
local sound=Instance.new("Sound")
sound.Parent = game.Workspace
sound.SoundId = "http://www.roblox.com/asset/?id=130844430"
wait(120)
sound:Destroy()
if
Tally2.Value > Tally1.Value then
end
end
wait()
end
(I'm working on a voting script system. I've got it all done just it won't play the sounds. I'm guessing it won't find the Tally1.Value?)
Report Abuse
Meowcatmaster is not online. Meowcatmaster
Joined: 20 Oct 2012
Total Posts: 769
17 Jun 2014 12:09 PM
Fixed it.
I forgot i put the script in startergui for the sound and now it works.
I put game.Workspace.Tally1.Value not Tally1.Value
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