Tweening Part Problem?

Recently I started to learn scripting, and am now learning TweenService to animate parts. I wrote a script (below) that should tween the item with a bouncer animation, and make it larger and red. However I am having this issue that hopefully someone can help me figure out

The Script

local tweenService = game:GetService(“TweenService”)
local part = script.Parent
local tweeningInformation = TweenInfo.new(
5, – Length
Enum.EasingStyle.Bounce, – Easing direction
Enum.EasingDirection.In, – Easing direction
10, – Number of repetitions
false, – Should tween reverse?
2 – Length between repetitions
)
local partProperties = {
Size = Vector3.new(20, 20, 20);
Color = Color3.new(255, 0, 0);
Transparency = 0
}
local Tween = tweenService:Create(part, tweeningInformation, partProperties)
Tween:Play()

The Result

https://gyazo.com/7ffc0851a86dd3a22359670443253d4a

Please Help!
Edit: Even when I set the original color value to 255, 0, 0 it still blinks between red and black…

PS: are you able to tween camera FOV? If not are there any alternatives?

4 Likes

I meant more with the coloring error

just realized, my bad, issue wasn’t specified.

Color = Color3.new(255, 0, 0);

255 is max value of a color from RGB, to set it to full red properly, use Color3.fromRGB(255,0,0) instead
otherwise Color3.new(1,0,0) which act as a %

3 Likes

yea, i believe i should go to sleep,

it’s Color3.fromRGB(255,0,0)

1 Like

Ok AS FAR AS I AM CONCERNED you can tween any editable property, even boolean values! (in response to your ‘PS’ statement. I don’t think I need to elaborate on how to do this.

1 Like