function Equip(parent,pitch,volume,remove_time)
local EquipSound = Instance.new("Sound",parent)
game.Debris:AddItem(EquipSound,remove_time)
EquipSound.SoundId = "http://www.roblox.com/asset/?id=153647514"
game:GetService("ContentProvider"):Preload(EquipSound.SoundId)
EquipSound.Pitch = pitch
EquipSound.Volume = volume
EquipSound:Play()
return (EquipSound)
end
function GiveMask()
Equip()
end
script.Parent.Button.MouseButton1Click:connect(function()
GiveMask()
end)
✓ ANSWER ACCEPTED
Why doesnt it work?
1 answer
✓ Accepted answer
You're calling Equip without passing any arguments. It has four parameters that you haven't given any values to. pitch and volume are the ones that will make it error if it doesn't get them.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
output