local twinser = game:GetService("TweenService")
local twinfo = TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.In,0,false,0)
function ColorStroke(n)
if n == 0 then
Chap1.UIStroke.Color = Color3.fromRGB(255,255,255)
Chap2.UIStroke.Color = Color3.fromRGB(255,255,255)
BotMode.UIStroke.Color = Color3.fromRGB(255,255,255)
PlayerMode.UIStroke.Color = Color3.fromRGB(255,255,255)
else
twinser:Create(n, twinfo, {Color = Color3.fromRGB(255,0,255)})
end
end```
#TweenService isn't working
1 messages · Page 1 of 1 (latest)
you are never actually playing the tween, doing :Create creates a tween, which you can play, but you don't.
so for your cause, you do should create the tween outside of the ColorStroke function, then :Play() it within the if-else.
like so:
local twinser = game:GetService("TweenService")
local twinfo = TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.In,0,false,0)
local coltween = twinser:Create(n, twinfo, {Color = Color3.fromRGB(255,0,255)})
function ColorStroke(n)
if n == 0 then
Chap1.UIStroke.Color = Color3.fromRGB(255,255,255)
Chap2.UIStroke.Color = Color3.fromRGB(255,255,255)
BotMode.UIStroke.Color = Color3.fromRGB(255,255,255)
PlayerMode.UIStroke.Color = Color3.fromRGB(255,255,255)
else
coltween:Play()
end
end
@crimson mulch
tyyy
you are not playing them
ow ye like that
yeah dw we fixed it already