null
nil
-
false
Sound
-- util
function waitForChild(parent, childName)
local child = parent:findFirstChild(childName)
if child then return child end
while true do
child = parent.ChildAdded:wait()
if child.Name==childName then return child end
end
end
function newSound(id, name)
local sound = Instance.new("Sound")
sound.SoundId = id
sound.archivable = false
sound.Parent = script.Parent.Head
sound.Name = name
return sound
end
-- declarations
local Figure = script.Parent
local Head = waitForChild(Figure, "Head")
local Humanoid = waitForChild(Figure, "Humanoid")
local sDied = newSound("rbxasset://sounds/uuhhh.wav", "DiedSound")
local sFallingDown = newSound("rbxasset://sounds/splat.wav", "FallingDownSound")
local sFreeFalling = newSound("rbxasset://sounds/swoosh.wav", "FreeFallingSound")
local sGettingUp = newSound("rbxasset://sounds/hit.wav", "GettingUpSound")
local sJumping = newSound("rbxasset://sounds/button.wav", "JumpingSound")
local sRunning = newSound("rbxasset://sounds/bfsl-minifigfoots1.mp3", "RunningSound")
sRunning.Looped = true