I have 2 bricks that play audio once
local CD = script.Parent.ClickDetector
local Part = script.Parent
local Sound = script.Parent.Sound
game.Players.PlayerAdded:Connect(function(plr)
local HasClicked = Instance.new("BoolValue")
HasClicked.Name = 'HasClicked'
HasClicked.Parent = plr
end)
CD.MouseClick:Connect(function(player)
if player.HasClicked.Value == false then
Sound.Playing = true
player.HasClicked.Value = true
else
print('No you have clicked this')
end
end)
And if I click the 1 brick that plays audio the other one does not

2 comments
does not work
try again ... i made a mistake