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
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
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.
1 comment
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.