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: Music player malfunction

Previous Thread :: Next Thread 
BRNMan is not online. BRNMan
Joined: 19 May 2010
Total Posts: 94
24 Jul 2011 01:02 PM
It won't work...


music1=Script.Parent.Parent.Parent.Rickroll.Sound
music2=Script.Parent.Parent.Parent.Supermario64.Sound
music3=Script.Parent.Parent.Parent.Pokemon Theme.Sound
music4=Script.Parent.Parent.Parent.Techno Funk.Sound
music5=Script.Parent.Parent.Parent.The Entertainer.Sound

function onClicked()
music1:Stop()--Stops Music
music2:Stop()
music3:Stop()
music4:Stop()
music5:Stop()
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)

WHAT IS WRONG!!!!
Report Abuse
agent767 is not online. agent767
Joined: 03 Nov 2008
Total Posts: 4181
24 Jul 2011 01:07 PM
music1=Script.Parent.Parent.Parent.Rickroll.Sound
music2=Script.Parent.Parent.Parent.Supermario64.Sound
music3=Script.Parent.Parent.Parent["Pokemon Theme"].Sound
music4=Script.Parent.Parent.Parent["Techno Funk"].Sound
music5=Script.Parent.Parent.Parent["The Entertainer"].Sound

function onClicked()
music1:Stop()--Stops Music
music2:Stop()
music3:Stop()
music4:Stop()
music5:Stop()
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)



LUA doesnt like spaces.
btw:
next time give us the output
Report Abuse
BRNMan is not online. BRNMan
Joined: 19 May 2010
Total Posts: 94
24 Jul 2011 01:32 PM
I'm not that good so thanks!
Report Abuse
BRNMan is not online. BRNMan
Joined: 19 May 2010
Total Posts: 94
24 Jul 2011 01:35 PM
It won't stop any of my songs... =(
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
24 Jul 2011 01:40 PM
Forgot that 'script' is not capitalized.

music1=script.Parent.Parent.Parent.Rickroll.Sound
music2=script.Parent.Parent.Parent.Supermario64.Sound
music3=script.Parent.Parent.Parent["Pokemon Theme"].Sound
music4=script.Parent.Parent.Parent["Techno Funk"].Sound
music5=Script.Parent.Parent.Parent["The Entertainer"].Sound

function onClicked()
music1:Stop()--Stops Music
music2:Stop()
music3:Stop()
music4:Stop()
music5:Stop()
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)
Report Abuse
BRNMan is not online. BRNMan
Joined: 19 May 2010
Total Posts: 94
24 Jul 2011 02:30 PM
Still doesn't wurk... D=
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
24 Jul 2011 02:38 PM
music1=script.Parent.Parent.Parent.Rickroll.Sound
music2=script.Parent.Parent.Parent.Supermario64.Sound
music3=script.Parent.Parent.Parent["Pokemon Theme"].Sound
music4=script.Parent.Parent.Parent["Techno Funk"].Sound
music5=Script.Parent.Parent.Parent["The Entertainer"].Sound

function onClicked()
music1:Pause()--Stops Music
music2:Pause()
music3:Pause()
music4:Pause()
music5:Pause()
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)

-- try that, and give me the result of the output. Sometimes sounds don't stop playing when their looped :/
Report Abuse
BRNMan is not online. BRNMan
Joined: 19 May 2010
Total Posts: 94
24 Jul 2011 02:55 PM
Its looped and

Sun Jul 24 15:52:40 2011 - Running Script "Workspace.The Sterio.The Entertainer.Head.Script"
Sun Jul 24 15:52:40 2011 - Running Script "Workspace.The Sterio.Techno Funk.Head.Script"
Sun Jul 24 15:52:40 2011 - Running Script "Workspace.The Sterio.Supermario64.Head.Script"
Sun Jul 24 15:52:40 2011 - Running Script "Workspace.Health"
Sun Jul 24 15:52:40 2011 - Running Script "Workspace.The Sterio.Pokemon Theme.Head.Script"
Sun Jul 24 15:52:40 2011 - Running Script "Workspace.The Sterio.Rickroll.Head.Script"
Sun Jul 24 15:52:40 2011 - Running Script "Workspace.The Sterio.Stop.Head.Script"
Sun Jul 24 15:52:40 2011 - Workspace.The Sterio.Stop.Head.Script:5: 'name' expected near '['



when it says name there is a less than sign and after name a greater than sign.
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
24 Jul 2011 03:00 PM
music1=Script.Parent.Parent.Parent.Rickroll.Sound
music2=Script.Parent.Parent.Parent.Supermario64.Sound
music3=Script.Parent.Parent.Parent.Pokemon Theme.Sound
music4=Script.Parent.Parent.Parent.Techno Funk.Sound
music5=Script.Parent.Parent.Parent.The Entertainer.Sound

function onClicked()
music1.Looped = false
music1:Stop()
music2.Looped = false
music2:Stop()
music3.Looped = false
music3:Stop()
music4.Looped = false
music4:Stop()
music5.Looped = false
music5:Stop()
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)


-- and one of your scripts located in (The Sterio>Stop>Head) has an error.
Report Abuse
BRNMan is not online. BRNMan
Joined: 19 May 2010
Total Posts: 94
24 Jul 2011 03:03 PM
sterio>stop>head is the script i'm trying to fix
Report Abuse
BRNMan is not online. BRNMan
Joined: 19 May 2010
Total Posts: 94
24 Jul 2011 03:06 PM
new output

Sun Jul 24 16:04:50 2011 - Running Script "Workspace.Health"
Sun Jul 24 16:04:50 2011 - Running Script "Workspace.The Sterio.Supermario64.Head.Script"
Sun Jul 24 16:04:50 2011 - Running Script "Workspace.The Sterio.Pokemon Theme.Head.Script"
Sun Jul 24 16:04:50 2011 - Running Script "Workspace.The Sterio.Rickroll.Head.Script"
Sun Jul 24 16:04:50 2011 - Running Script "Workspace.The Sterio.The Entertainer.Head.Script"
Sun Jul 24 16:04:50 2011 - Running Script "Workspace.The Sterio.Techno Funk.Head.Script"
Sun Jul 24 16:04:50 2011 - Running Script "Workspace.The Sterio.Stop.Head.Script"
Sun Jul 24 16:04:50 2011 - Workspace.The Sterio.Stop.Head.Script:6: '=' expected near 'music4'
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
24 Jul 2011 03:15 PM
Post your head script here then. And did the music stop?
Report Abuse
BRNMan is not online. BRNMan
Joined: 19 May 2010
Total Posts: 94
24 Jul 2011 03:18 PM
No and

-- Copyright© 2011 BRNMan -- Do I even have to do this? --No

music1=Script.Parent.Parent.Parent.Rickroll.Sound
music2=Script.Parent.Parent.Parent.Supermario64.Sound
music3=Script.Parent.Parent.Parent.Pokemon Theme.Sound
music4=Script.Parent.Parent.Parent.Techno Funk.Sound
music5=Script.Parent.Parent.Parent.The Entertainer.Sound

function onClicked()
music1.Looped = false --stops music
music1:Stop()
music2.Looped = false
music2:Stop()
music3.Looped = false
music3:Stop()
music4.Looped = false
music4:Stop()
music5.Looped = false
music5:Stop()
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
24 Jul 2011 03:20 PM
Isn't there a 'head' script? - the output returned an error from the 'head' object :/

Report Abuse
BRNMan is not online. BRNMan
Joined: 19 May 2010
Total Posts: 94
24 Jul 2011 03:26 PM
that is the head script... the one we are trying to fix
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
24 Jul 2011 03:45 PM
Dudddee. Like I said (Script) can't be capitalized in parenting. It doesn't work.


music1=script.Parent.Parent.Parent.Rickroll.Sound
music2=script.Parent.Parent.Parent.Supermario64.Sound
music3=script.Parent.Parent.Parent.Pokemon Theme.Sound
music4=script.Parent.Parent.Parent.Techno Funk.Sound
music5=script.Parent.Parent.Parent.The Entertainer.Sound

function onClicked()
music1.Looped = false --stops music
music1:Stop()
music2.Looped = false
music2:Stop()
music3.Looped = false
music3:Stop()
music4.Looped = false
music4:Stop()
music5.Looped = false
music5:Stop()
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
Report Abuse
BRNMan is not online. BRNMan
Joined: 19 May 2010
Total Posts: 94
24 Jul 2011 04:21 PM
sorry then but thats how u did it. i will try this
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
24 Jul 2011 05:49 PM
Yeah, sorry I copied/pasted your old code. I thought that you used my previous post.
Report Abuse
BRNMan is not online. BRNMan
Joined: 19 May 2010
Total Posts: 94
25 Jul 2011 01:03 PM
rrickroll goes on but not off D=
Report Abuse
comiconor is not online. comiconor
Joined: 26 May 2009
Total Posts: 16893
25 Jul 2011 01:44 PM
[ Content Deleted ]
Report Abuse
Scriptek is not online. Scriptek
Joined: 22 Jul 2011
Total Posts: 14
25 Jul 2011 01:48 PM
Urgh.

music1=script.Parent.Parent.Parent.Rickroll.Sound
music2=script.Parent.Parent.Parent.Supermario64.Sound
music3=script.Parent.Parent.Parent["Pokemon Theme"].Sound
music4=script.Parent.Parent.Parent["Techno Funk"].Sound
music5=script.Parent.Parent.Parent["The Entertainer"].Sound

function onClicked()
music1.Looped = false --stops music
music1:Stop()
music2.Looped = false
music2:Stop()
music3.Looped = false
music3:Stop()
music4.Looped = false
music4:Stop()
music5.Looped = false
music5:Stop()
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)



Report Abuse
BRNMan is not online. BRNMan
Joined: 19 May 2010
Total Posts: 94
29 Jul 2011 09:10 PM
FINALLY!!! IT WORKS!!!
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