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
 

Sound script help

Previous Thread :: Next Thread 
CintDoggie is not online. CintDoggie
Joined: 07 Aug 2009
Total Posts: 2563
04 Jun 2014 04:04 AM
A lot of people need help with sound at this hour, eh?
The script works perfectly, except that when I try to duplicate the code and do it with another SoundId in the same script it completely ignores the joj and fanksgiving function and goes straight to trying to remove the non-existing sound.

local joj = Instance.new("Sound", game.Workspace)
local fanksgiving = game.Workspace.Sound
joj = true
fanksgiving.SoundId = "http://www.roblox.com/asset/?id=142423769"
fanksgiving.Pitch = 1
fanksgiving.Looped = false
fanksgiving.Volume = 1
fanksgiving.PlayOnRemove = true
game.Workspace.Sound:Remove()
print('you want the joj done right')
--game.Workspace.Players.Remove()
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
04 Jun 2014 04:23 AM
make new variable, AAAAND MOST IMPORTANT, AND IM TOO LAZY TO TURN OFF MY CAPS,
PRELOAD THE ASSET
Report Abuse
CintDoggie is not online. CintDoggie
Joined: 07 Aug 2009
Total Posts: 2563
04 Jun 2014 04:24 AM
I have tried changing the variable but it skips it. Why preload it?
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
04 Jun 2014 04:25 AM
I think it removes bcuz it didnt preload,
Yaknow, when kohl for ex it goes twice.

If it stops, it might dpget removed before loaded.
Report Abuse
CintDoggie is not online. CintDoggie
Joined: 07 Aug 2009
Total Posts: 2563
04 Jun 2014 04:28 AM
Would wait and then remove work?
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
04 Jun 2014 04:31 AM
AddDebris()
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