HI, I'm Craig. I am having a problem with scripting.
I tried to make a Button that if you click it, the button will change the color of a beam. This is my script:
local Epic=script.Parent.ClickDetector function onClick() game.Workspace.Band.Beamm.Beam.Color = Color3.new(0/255,255/255,0/255) end Epic.MouseClick:connect(onClick)
The main thing I'm having problem is this line:
game.Workspace.Band.Beamm.Beam.Color = Color3.new(0/255,255/255,0/255)
Is there something wrong? Please help me.
Take this one:
local Epic=script.Parent function onClick() game.Workspace.Band.Beamm.Beam.Color = Color3.new(255, 255, 255) end Epic.ClickDetector.MouseClick:connect(onClick)