TweenAnimation ignores EasingStyle when repeating

Hello everyone! i have an issue wehre my TweenAnimation completely ignores the easing style when its repeating so any help would be really apreciated.

i tryd using this line of Code local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear) again but it doesent seem to change anything.

Here is the entire Code so you have some more Context

local TweenService = game:GetService("TweenService")		
		local goal = {}
		local reverseTween = {}
		goal.TextColor3 = Color3.new(1, 0.384314, 0.384314)
		reverseTween.TextColor3 = Color3.new(232, 232, 232)		

        local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear)
		for i,v in pairs(game.Players:GetPlayers()) do
			local Text = v.PlayerGui.GameEffects.TestText
			
			for i=1,3 do
				local tween = TweenService:Create(Text, tweenInfo, goal)
				tween:Play()
				tween.Completed:Wait()
				wait(0.5)
				local tween = TweenService:Create(Text, tweenInfo, reverseTween)
				tween:Play()
				tween.Completed:Wait()
end

and as allways any help like i already said is very apreciated!

Sorry did forget some parts of the Code i edited the post for you all.

maybe you should put tween info inside the loop not sure if its gonna help

Not to sure what you mean by completely ignores the easing style, but it might be breaking because you’ve used the same variable name twice for tween. Try giving it a different variable name for the reverse tween

Hey, @madonchik123 @Azarctic here is a Video of my problem i apologize for the bad quality Roblox really needs to fix there Recording feature anyways


the first Tween fades in smoothly but the repeats ignores the EasingStyle for some reason?!

i already tryd this and it doesent work.

Your issue is the fact you’re using Color3.new as Color3.fromRGB. To avoid this, just divide it by 255.

Color3.new(232/255, 232/255, 232/255)
2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.