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: whats wrong with this simple script

Previous Thread :: Next Thread 
Tiqar is not online. Tiqar
Joined: 03 Jul 2008
Total Posts: 325
12 May 2014 05:45 PM
it won't work for some reason, my first script btw

game.Players.PlayerAdded:connect(function(plr)
game.Workspace.Sound:Play ()
wait(10)
Game.Workspace.Sound:Stop()
end)

it works when I take off the first line but I need the first line to be on because I don't want the song to play again when the player resets

Report Abuse
Tiqar is not online. Tiqar
Joined: 03 Jul 2008
Total Posts: 325
12 May 2014 05:49 PM
bump help please
Report Abuse
Tiqar is not online. Tiqar
Joined: 03 Jul 2008
Total Posts: 325
12 May 2014 06:06 PM
bump :<
Report Abuse
IAmTheRolo is not online. IAmTheRolo
Joined: 12 Nov 2013
Total Posts: 859
12 May 2014 06:09 PM
Is it just me, or do you have a space between Play and ()?
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
12 May 2014 06:10 PM
If you want the music to not be ruined for others when a person joins, clone the music into the player and then play it..
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
12 May 2014 06:10 PM
it won't work for some reason, my first script btw

game.Players.PlayerAdded:connect(function(plr)

S = Workspace.Sound:Clone()
repeat wait() until plr.PlayerGui

S.Parent = plr.PlayerGui
S:Play()

wait(10)

S:Stop()
S:Destroy()

end)


Have you tried that?
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
12 May 2014 06:11 PM
Sorry I pasted the top line...

game.Players.PlayerAdded:connect(function(plr)

S = Workspace.Sound:Clone()
repeat wait() until plr.PlayerGui

S.Parent = plr.PlayerGui
S:Play()

wait(10)

S:Stop()
S:Destroy()

end)


Have you tried that?
Report Abuse
Tiqar is not online. Tiqar
Joined: 03 Jul 2008
Total Posts: 325
12 May 2014 06:16 PM
worked thanks!
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
12 May 2014 06:33 PM
No problem. :D
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