so when you click its supposed to make a sound but it makes the sound in studio but not in game please help ~~~~~~~~~~~~~~~~~

Cookies = script.Parent.Parent.TextLabel.Cookies

script.Parent.MouseButton1Down:connect(function()
	script.WAH:Play()
	Cookies.Value = Cookies.Value + 1
	script.Parent.Parent.TextLabel.Text = "Wahs:"..Cookies.Value
end)


2 comments

0

When I first checked this I saw you spelled "script" wrong in the "script.Sound.Play" part, try fixing this and see if it works. Also can you correctly format your code in Lua and tell us if you got any error codes?

0

Is this in a script or localscript?