This script is in a block with a "Click Detector" but when i move the script into a text button on a surface gui it wont work... And i cant move the click detector into the text button?
local Epic=script.Parent.ClickDetector function onClick() game.Workspace.Light1.PointLight.Color = Color3.new(255/255,0/255,0/255) game.Workspace.Light2.PointLight.Color = Color3.new(255/255,0/255,0/255) game.Workspace.Light3.PointLight.Color = Color3.new(255/255,0/255,0/255) game.Workspace.Light4.PointLight.Color = Color3.new(255/255,0/255,0/255) end Epic.MouseClick:connect(onClick)
I want that but i want the button to be a text button on surface gui not a block like it currently is.
