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()
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?