I have an animation that plays when I hold it. (Eating Animation)
And basically I just want to know how to add a "Sound" to it when the animation plays. So like a sipping sound when they drink. Here's the animation: Below
GelatoCup = script.Parent player = game.Players.LocalPlayer.Character Humanoid = player.Humanoid
GelatoCup.Equipped:connect(function(mouse) mouse.Button1Down:connect(function() local animation = Instance.new("Animation") animation.Parent = player animation.AnimationId = "http://www.roblox.com/Asset?ID=633296568" local animTrack = Humanoid:LoadAnimation(animation) animTrack:Play() end) end)
Well. I can show you how I play sounds in my scripts. I'm guessing that GelatoCup is a tool, right? I'd insert a sound into gelatin cup, right after the animation, put this:
local a = Instance.new("Sound") a.SoundId = "http://www.roblox.com/asset/?id=PUTSOUNDIDHERE" -- put the sound id at the end of the URL a.Parent = x -- assuming that x is the GelatoCup, you can change x to whatever you want a.Volume = 2 -- what ever volume you want a:play()