As usual, My script IS NOT WORKING! I want to do this fast, And the only information i can provide with is:The button is flashing Green,Then yellow, then Dark green,Then orange, Then black, Then red.
Part = script.Parent clickDetector = Instance.new("ClickDetector") clickDetector.Parent = Part tweeningInformation = TweenInfo.new( 5, --Length Enum.EasingStyle.Linear, --Easing style Enum.EasingDirection.Out, -- 0, --Repeat true, --Repeat? 1 --Delay ) partProperties = { Color = Color3.new(255, 0, 0) } Tween1 = TS:Create(Part,tweeningInformation,partProperties) function onClicked() Tween1:play() end script.Parent.ClickDetector.MouseClick:connect(onClicked)
Please explain why. I am getting answers i dont understand and i want good answers.