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

Loop for changing TextLabel Color3 isn't working. Help?

So, I'm making a "dev" label above my head, and it's using a somewhat magenta color and a somewhat orange color. Orange first. But then it goes straight to the magenta color. I am using a Script in StarterPlayer.StarterCharacterScripts. code:

local char = script.Parent
local tweenservice = game:GetService("TweenService")

wait(1)
if not char.Head:FindFirstChild("BillboardGui2") == nil then
	while true do
		local goal = {}
		goal.Color3 = Color3.fromRGB(253, 128, 8)
		local tween = TweenInfo.new(4)
		local playing = tweenservice:Create(char.Head.BillboardGui2.TextLabel,tween,goal)
		playing:Play()
		wait(4)
		local goal2 = {}
		goal2.Color3 = Color3.fromRGB(252, 2, 128)
		local tween2 = TweenInfo.new(4)
		local playing2 = tweenservice:Create(char.Head.BillboardGui2.TextLabel,tween2,goal2)
		playing2:Play()
		wait(4)
	end
end

If you can help, thank you. NOTE: Only part of script. b_mni

1 answer

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