This is the script:
game.Workspace.clickdetectorevent.OnServerEvent:Connect(function()
local button = script.Parent.Parent.Model.Button
local door = script.Parent.Parent.Door
button.BrickColor = BrickColor.Black()
button.Transparency = 0.5
door.CanCollide = false
door.Transparency = 0.6
script.Parent.Parent.Model.Button.beep.play()
wait(3)
button.BrickColor = BrickColor.Red()
button.Transparency = 0
door.CanCollide = true
door.Transparency = 0
end)
I'm very new to scripting, and I can't figure out how to play a sound (the sound is named beep) I'm sorry if there's some sort of obvious error, like I stated before, I'm very new and any piece of advice or help is greatly appreciated.

4 comments
Thanks a million!
EpicEndoskeleton, It is not fair for using bibi0629's answer and NOT accepting it. Please consider doing it.
I agree with you^
I'm sorry, I didn't realise there was an accept button, thanks for reminding me!