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 » Scripters
Home Search
 

Re: MUSC STOP!

Previous Thread :: Next Thread 
KungfuDeveloper is not online. KungfuDeveloper
Joined: 13 Apr 2012
Total Posts: 117
31 May 2015 10:26 PM
How do I stop music from another script
with a script ? It is an OnClicked script so like
example :

function onClick(mouse)

game.StarterGui.HelpGui.OPEN.Music:Stop()


end
script.Parent.MouseButton1Click:connect(onClick)

-- "OPEN" Is the parent which contains the sound file "Music"
Report Abuse
CrowClaws is not online. CrowClaws
Joined: 04 Jul 2010
Total Posts: 4466
31 May 2015 10:28 PM
no no no

not startergui
palyergui

so do something like

script.Parent.Open.Music:Stop()
Report Abuse
KungfuDeveloper is not online. KungfuDeveloper
Joined: 13 Apr 2012
Total Posts: 117
31 May 2015 10:30 PM
xD ok thanks?
Report Abuse
KungfuDeveloper is not online. KungfuDeveloper
Joined: 13 Apr 2012
Total Posts: 117
31 May 2015 10:31 PM
I see so one the script is executed from starter gui it
moves to playergui?
Report Abuse
CrowClaws is not online. CrowClaws
Joined: 04 Jul 2010
Total Posts: 4466
31 May 2015 10:32 PM
it never executes in startergui

startergui is just a bin. When a player joins/respawns it takes from this bin and puts it in the player's "PlayerGui"
Report Abuse
KungfuDeveloper is not online. KungfuDeveloper
Joined: 13 Apr 2012
Total Posts: 117
31 May 2015 10:34 PM
Okay I tried script.Parent.Music:Stop()

Report Abuse
KungfuDeveloper is not online. KungfuDeveloper
Joined: 13 Apr 2012
Total Posts: 117
31 May 2015 10:35 PM
Doesn't work
can you make a onClicked
script and - stop a "Music"

-game.StarterGui.OPEN.Music:Stop()

-- example of where it is.
Report Abuse
Tokimonu is not online. Tokimonu
Joined: 18 Sep 2009
Total Posts: 643
31 May 2015 10:46 PM
Use script.Parent.Clicked:connect(function()

Don't use function onClicked or whatever, it's more efficient that way (at least I think)


r̙̠̞̮̟͕̠e̙̖̱̞͍͎̺a̟̞͖͚͉̮lí̘̖̻t҉̜̬̥̼̝̳y̯̝ ̛͍̦͎͉̙iş̪͉̜͓̞ ̺̲͈̪͍̟͜an̙̤ ̴͈ͅi̘͕̗͈̖̹l̹l̥̻̀u̜͈͍s͏̣͖͍̺i̥̪̟ơṋ̼͇ ͕̙̳̝a͇͍͍͝n̤̪d̛͓͓̫ ͈̝̕t̹̝̦h̰͎̺̘͎͞e̢̤̭͈̲ ̦̹̠̰ụ̶̟͚͓̣n͔̦͕̳i͏̪̞ve҉̤̮͓͎̺r҉̗̫̬s̻̹͉̟ȩ̖̻ i͇̯̦̤̝͓͘ͅs̛̫̻͍̦̝̠̪ ̸̬͚a̷̻͈̫̦̦ ̬͙̫̺͉h̬̩̲̻̳̱o̙̺̥̝̪̭͇l͘o̤͔̜̹̭g̻͖̟̳̹̱ṛ̨͓̜͇̦a͏͕̞̞m͈̦̱̣̫̣
Report Abuse
CrowClaws is not online. CrowClaws
Joined: 04 Jul 2010
Total Posts: 4466
31 May 2015 10:47 PM
@Toki it's not more effecient, but it's prettier :p
Report Abuse
Tokimonu is not online. Tokimonu
Joined: 18 Sep 2009
Total Posts: 643
31 May 2015 10:48 PM
Yeah. I just like to tell myself that to make myself feel better about my own code. ;D


r̙̠̞̮̟͕̠e̙̖̱̞͍͎̺a̟̞͖͚͉̮lí̘̖̻t҉̜̬̥̼̝̳y̯̝ ̛͍̦͎͉̙iş̪͉̜͓̞ ̺̲͈̪͍̟͜an̙̤ ̴͈ͅi̘͕̗͈̖̹l̹l̥̻̀u̜͈͍s͏̣͖͍̺i̥̪̟ơṋ̼͇ ͕̙̳̝a͇͍͍͝n̤̪d̛͓͓̫ ͈̝̕t̹̝̦h̰͎̺̘͎͞e̢̤̭͈̲ ̦̹̠̰ụ̶̟͚͓̣n͔̦͕̳i͏̪̞ve҉̤̮͓͎̺r҉̗̫̬s̻̹͉̟ȩ̖̻ i͇̯̦̤̝͓͘ͅs̛̫̻͍̦̝̠̪ ̸̬͚a̷̻͈̫̦̦ ̬͙̫̺͉h̬̩̲̻̳̱o̙̺̥̝̪̭͇l͘o̤͔̜̹̭g̻͖̟̳̹̱ṛ̨͓̜͇̦a͏͕̞̞m͈̦̱̣̫̣
Report Abuse
iiEssence is not online. iiEssence
Joined: 18 Jun 2014
Total Posts: 3467
31 May 2015 10:50 PM
I don't see how one is more efficient than the other.
Report Abuse
Tokimonu is not online. Tokimonu
Joined: 18 Sep 2009
Total Posts: 643
31 May 2015 10:53 PM
as crowclaws said:
>it's not more effecient, but it's prettier :p

as i said:
Yeah. I just like to tell myself that to make myself feel better about my own code. ;D


r̙̠̞̮̟͕̠e̙̖̱̞͍͎̺a̟̞͖͚͉̮lí̘̖̻t҉̜̬̥̼̝̳y̯̝ ̛͍̦͎͉̙iş̪͉̜͓̞ ̺̲͈̪͍̟͜an̙̤ ̴͈ͅi̘͕̗͈̖̹l̹l̥̻̀u̜͈͍s͏̣͖͍̺i̥̪̟ơṋ̼͇ ͕̙̳̝a͇͍͍͝n̤̪d̛͓͓̫ ͈̝̕t̹̝̦h̰͎̺̘͎͞e̢̤̭͈̲ ̦̹̠̰ụ̶̟͚͓̣n͔̦͕̳i͏̪̞ve҉̤̮͓͎̺r҉̗̫̬s̻̹͉̟ȩ̖̻ i͇̯̦̤̝͓͘ͅs̛̫̻͍̦̝̠̪ ̸̬͚a̷̻͈̫̦̦ ̬͙̫̺͉h̬̩̲̻̳̱o̙̺̥̝̪̭͇l͘o̤͔̜̹̭g̻͖̟̳̹̱ṛ̨͓̜͇̦a͏͕̞̞m͈̦̱̣̫̣
Report Abuse
iiEssence is not online. iiEssence
Joined: 18 Jun 2014
Total Posts: 3467
31 May 2015 10:57 PM
Why am I so bad at english
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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