Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Code not working Tweenservice why? Need replies

local TweenService = game:GetService("TweenService")
local Part = script.Parent

local Info = TweenInfo.new(
	5,
	Enum.EasingStyle.Sine,
	Enum.EasingDirection.Out,
	0,
	false
	0
)

local Goals = 
{
	size = Vector3.new(15,15,15);
}

local MakePartBiggerTween = TweenService:Create(Part, Info, Goals)

wait(1)
MakePartBiggerTween:Play()

1 comment

0

the 0 is not working

2 answers

You're missing a comma in the TweenInfo line. Check out the comments, too, as I fixed some other stuff. Here's the fixed code:

local TweenService = game:GetService("TweenService") 
local Part = script.Parent

local Info = TweenInfo.new(5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0) -- Missing a comma after false, that's why it wasn't working

local Goals = { Size = Vector3.new(15,15,15) } -- Capitalize the S in Size, I think it's case sensetive.

local MakePartBiggerTween = TweenService:Create(Part, Info, Goals)

wait(1) 
MakePartBiggerTween:Play()

Hope this helps

you forgot a comma at the last parameter for the 'info'

local Info = TweenInfo.new( 5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false 0 )

2 comments

0

You didn't even change anything

0

im just pointing out what he missed, not spoonfeeding

This discussion is preserved as it was. New answers, comments, and votes are closed.