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
|
  |
| 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
|
  |
| Joined: 19 May 2010 |
| Total Posts: 94 |
|
|
| 24 Jul 2011 01:32 PM |
| I'm not that good so thanks! |
|
|
| Report Abuse |
|
|
BRNMan
|
  |
| Joined: 19 May 2010 |
| Total Posts: 94 |
|
|
| 24 Jul 2011 01:35 PM |
| It won't stop any of my songs... =( |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 19 May 2010 |
| Total Posts: 94 |
|
| |
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 24 Jul 2011 03:15 PM |
| Post your head script here then. And did the music stop? |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 24 Jul 2011 03:20 PM |
Isn't there a 'head' script? - the output returned an error from the 'head' object :/
|
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 19 May 2010 |
| Total Posts: 94 |
|
|
| 25 Jul 2011 01:03 PM |
| rrickroll goes on but not off D= |
|
|
| Report Abuse |
|
|
comiconor
|
  |
| Joined: 26 May 2009 |
| Total Posts: 16893 |
|
| |
|
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
|
  |
| Joined: 19 May 2010 |
| Total Posts: 94 |
|
| |
|