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.
replace line 9
script.Parent.Parent.Model.Button.beep.play() -- the dot should be replaced with a ":"
with
script.Parent.Parent.Model.Button.beep:Play()