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: How do I make a humanoid play audio?

Previous Thread :: Next Thread 
LucioStaglione is not online. LucioStaglione
Joined: 14 Jun 2012
Total Posts: 89
18 Apr 2015 02:57 PM
I wanted to make this model
http://www.roblox.com/an-original-piece-item?id=217621722
play this audio
http://www.roblox.com/an-original-piece-item?id=217621722
if someone could explain it to me, or do it for me it would be appreciated.
Report Abuse
SummerEquinox is not online. SummerEquinox
Joined: 25 Jun 2013
Total Posts: 2088
18 Apr 2015 03:01 PM
Hey op...
Those are both the same link.
Report Abuse
LucioStaglione is not online. LucioStaglione
Joined: 14 Jun 2012
Total Posts: 89
18 Apr 2015 03:01 PM
I'm stupid, this model.
http://www.roblox.com/tyler-baugher-item?id=239437945
Report Abuse
SummerEquinox is not online. SummerEquinox
Joined: 25 Jun 2013
Total Posts: 2088
18 Apr 2015 03:02 PM
How do you want it to start?

On click?

On touch?
Report Abuse
LucioStaglione is not online. LucioStaglione
Joined: 14 Jun 2012
Total Posts: 89
18 Apr 2015 03:02 PM
Click
Report Abuse
SmokedPotato is not online. SmokedPotato
Joined: 12 Apr 2011
Total Posts: 480
18 Apr 2015 03:04 PM
I don't feel like helping because nobody bothers to help me.
Report Abuse
SummerEquinox is not online. SummerEquinox
Joined: 25 Jun 2013
Total Posts: 2088
18 Apr 2015 03:05 PM
Steps:

1.) Put a clickdetector in the model's "Torso" piece.
2.) Put a sound inside of the torso as well.
3.) Make the soundID say rbxassetid://217621722
4.) Put a script inside of the torso.
5.) Make the script say this.

script.Parent.ClickDetector.MouseClick:connect(function()
script.Parent.Sound:Play()
wait(script.Parent.Sound.TimeLength)
script.Parent.Sound:Pause()
end)
Report Abuse
icekiller8002 is not online. icekiller8002
Joined: 22 Jan 2013
Total Posts: 6636
18 Apr 2015 03:06 PM
script.Parent.ClickDetector.MouseClick:connect(function(player)
if script.Parent.Audio.IsPlaying == true then return end
script.Parent.Audio:Play()
end)

-- put this script in the torso

-- add the sound into the torso (name it 'Audio')
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
18 Apr 2015 03:10 PM
ice is doing it the non-logical way.

local Model = script.Parent
local Audio = Model.Audio

Model.ClickDetector.MouseClick:connect(function(player)
if not Audio.IsPlaying then
script.Parent.Audio:Play()
end
end)
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
18 Apr 2015 03:11 PM
local Model = script.Parent
local Audio = Model.Audio

Model.ClickDetector.MouseClick:connect(function(player)
if not Audio.IsPlaying then
Audio:Play()
end
end)
Report Abuse
LucioStaglione is not online. LucioStaglione
Joined: 14 Jun 2012
Total Posts: 89
18 Apr 2015 03:11 PM
I have literally no idea I suck at scripting, anyone who wants to do it for me 25 robux, also, if you could make the guitar he's holding a mesh not a tool. Thanks. PM me the t-shirt after you make the model.
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
18 Apr 2015 03:13 PM
Ok, now leave. 25R$ is sad, anyways. Someone [GAVE] you the script, now you want more?
Go away.
Report Abuse
LucioStaglione is not online. LucioStaglione
Joined: 14 Jun 2012
Total Posts: 89
18 Apr 2015 03:15 PM
50
Report Abuse
SummerEquinox is not online. SummerEquinox
Joined: 25 Jun 2013
Total Posts: 2088
18 Apr 2015 03:19 PM
We gave you three working possibilities.

Figure it out.

wiki.roblox.com
Report Abuse
LucioStaglione is not online. LucioStaglione
Joined: 14 Jun 2012
Total Posts: 89
18 Apr 2015 03:29 PM
I followed what you said and it didn't work I must have did something wrong
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