Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

I'm having trouble with my buzzer script to make the buzzer go Neon when press any help?

I'm trying to make it so when the player hits the click detection the buzzer goes neon but it won't work. Heres my script:

local ClickDetector.MouseClick = true   function(Material)
	workspace.Buzzer1.Material = Material.new("Neon")
	
	end 

1 comment

0

Don't kill me if im wrong, but i think you have to either use an event or "If". You simply set it to true.

1 answer

✓ Accepted answer

I actually don't understand what you have in your script... So it's hard to decide which part to fix...

So I hope this works!

--Change "script.Parent" if the script's parent is NOT the clickdetector, but I'm going to assume that it is
local clickDetector = script.Parent
local buzzer = workspace.Buzzer1 --Your buzzer

--Event that detects if it's clicked
clickDetector.MouseClick:Connect(function(player)
	buzzer.Material = Enum.Material.Neon
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.