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: Sound

Previous Thread :: Next Thread 
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
03 Apr 2013 05:44 PM
I made a humanoid touch a brick and it played the sound. I went on build mode and touched the brick and it played the sound. I went on play mode and touch the brick and it DIDN'T play the sound. Why? Thanks!
Report Abuse
Flash77 is not online. Flash77
Joined: 14 Jun 2008
Total Posts: 550
03 Apr 2013 05:46 PM
You may have to try to touch the brick multiple times, Since the sound has to load into the player's client. If not post the script so that we can see if there are any things that would make it not run on play mode.
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
03 Apr 2013 05:48 PM
function onPlayer(hit)
game.Soundscape.SoundCLICK:Play()
end

script.Parent.Touched:connect(onPlayer)

That's the script. The sound in the Soundscape is named "SoundCLICK".
Report Abuse
darkggod is not online. darkggod
Joined: 04 Feb 2011
Total Posts: 8316
03 Apr 2013 05:51 PM
Manually create a sound and play it on touch or put the sound in Workspace name it something like dark and in the functions block you'd do dark:play()

~LS Emperor Darkggod~
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
03 Apr 2013 05:55 PM
Like..how?
Report Abuse
darkggod is not online. darkggod
Joined: 04 Feb 2011
Total Posts: 8316
03 Apr 2013 05:59 PM
Well since you didn't understand what I said before I wrote up a quick song script for you.

I made it have only 2 playlists that you can edit and add or remove easily for new ones.

--Made By Darkggod
mario = "http://www.roblox.com/asset/?id=1280470"
rpg = "http://www.roblox.com/asset/?id=1372259"

g = Instance.new("Sound")
g.Parent = game.Workspace
g.Name = "darkg"
g.SoundId = mario
g.Volume = 1
g.Pitch = 1
g.Looped = true
g.Archivable = false
wait(1)
g:play()
end
end

Add this into a functions block, and to remove it you can simply do,
g = game.Workspace:findFirstChild("darkg")
wait()
g:Remove()

Or any other method of removing.


~LS Emperor Darkggod~
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
03 Apr 2013 06:00 PM
OH. I already know how to do this. You just made it kind of complicated with your words. XD
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
03 Apr 2013 06:01 PM
Do you have some sort of vehicle health script?
Report Abuse
darkggod is not online. darkggod
Joined: 04 Feb 2011
Total Posts: 8316
03 Apr 2013 06:04 PM
What do you mean by that?

~LS Emperor Darkggod~
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
03 Apr 2013 06:07 PM
Kind of like this one:
http://www.roblox.com/RobloxInstructives-Hangout-place?id=60562296

Not exactly. But can you tell me the basics of making one of these vehicle health scripts? Thank you.
Report Abuse
darkggod is not online. darkggod
Joined: 04 Feb 2011
Total Posts: 8316
03 Apr 2013 06:10 PM
I'd guess you'd use NumberValues and for every time its hit the value would lower, and once it reach' a cretin number preferably, 0 it would break its joints etc..

~LS Emperor Darkggod~
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
03 Apr 2013 06:10 PM
How about the billboard gui part?
Report Abuse
darkggod is not online. darkggod
Joined: 04 Feb 2011
Total Posts: 8316
03 Apr 2013 06:11 PM
I didn't check out that place I was generally answering the 'vehicle health' question.

~LS Emperor Darkggod~
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
03 Apr 2013 06:12 PM
Do you still know how to make some sort of billboard gui health?
Report Abuse
darkggod is not online. darkggod
Joined: 04 Feb 2011
Total Posts: 8316
03 Apr 2013 06:14 PM
Well you'd make its name correspond to the NumberValues, value I'd assume.

~LS Emperor Darkggod~
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