I tried making a cube play a sound when I click it but it doesn't work can u mind telling whats wrong with the script?

local function AAA() game.Workspace.Scream:Play() end

Script.Parent.ClickDetector.MouseClick:Connect (AAA)

1 comment

0

Please put your code in a code block, its kinda hard to read. Also, there seems to be a space in 'MouseClick:Connect (AAA)' which shouldn't be there