I am currently stumped at the moment. I have looked around for answers and I can’t quite figure out why this is happening. I am trying to tween the BrickColor of a characters head to the BrickColor “Sea Green” which equates to a Color3 value of (52, 142, 64) when a certain keyframe of an animation is reached.
When I attempted to tween to this color for some reason it tweens to the BrickColor “Sunrise” which equates to a Color3 value of (204, 114, 192). Now I’m not sure if tweening a BrickColor has to be handled differently than say tweening the position of something so I need some help. This may be a dumb mistake but I haven’t stumbled across the answer quite yet.
Here is the code I have so far:
local anim
if not anim then
anim = humanoid:LoadAnimation(script.Parent:WaitForChild("Zombify"))
end
local tweenInfo = TweenInfo.new(
2,
Enum.EasingStyle.Linear,
Enum.EasingDirection.In,
0,
false
)
anim.KeyframeReached:Connect(function(keyframeName)
if keyframeName == "Zombify" then
local tween = tweenService:Create(char.Head, tweenInfo, { Color = Color3.new(52, 142, 64) })
tween:Play()
end
end)