Tween not working properly

when I tween something, it doesn’t go the right way
The Script:
image
The Preview:


send help
1 Like

i think this is in the wrong category lol

I think too, I just don’t will change to
#flood-escape-2:map-creation-questions
Because in this category have solutions too.

Also, why there only 1 color in script?

yeah i’m changing to that category

because it’s supposed to switch to that color with the RGB value

First, you should notice that Color3.new is from a scale of 0 to 1. That can change the color if not careful.

– is the part which I am talking about.

local TweenService = game:GetService("TweenService")
local part = script.Parent
local tweeninfo = TweenInfo.new(5)
local goal = {}

-- goal.Color = Color3.new(94, 165, 163)

local tween = TweenService:Create(part, tweenInfo, goal)

Change the .new part to .fromRGB.

I think that is all I see wrong.

1 Like
local tweenService = game:GetService("TweenService")
local part = script.Parent
local tweenInfo = TweenInfo.new(5)
local goal = {Color = Color3.fromRGB(94,165,163)}
tweenService:Create(part, tweenInfo, goal):Play()
2 Likes

oh ok but what if i want to tween multiple properties

local tweenService = game:GetService("TweenService")
local part = script.Parent
local tweenInfo = TweenInfo.new(5)
local goal = {Color = Color3.fromRGB(94,165,163), Size = Vector3.new(2048,2048,2048)}
tweenService:Create(part, tweenInfo, goal):Play()
1 Like

image

1 Like