I wrote this simple code but it does not work, Please help thanks
1 | local tween = game:GetService( "TweenService" ) |
2 | local tweeninfo = TweenInfo.new( 10 , Enum.EasingStyle.Linear, Enum.EasingDirection.In, 1000 , true , nil ) |
3 | local tweenProperties = { Position = Vector 3. new(- 16 , 10 , - 6 ) } |
4 |
5 | tween:Create(script.Parent, tweeninfo, tweenProperties) |
make sure you add tween:Play()
1 | local TweenService = game:GetService( "TweenService" ) |
2 | local tweeninfo = TweenInfo.new( 10 , Enum.EasingStyle.Linear, Enum.EasingDirection.In, 1000 , true , 0 ) |
3 | local tweenProperties = { Position = Vector 3. new(- 16 , 10 , - 6 ) } |
4 |
5 | local tween = TweenService:Create(script.Parent, tweeninfo, tweenProperties) |
6 | tween:Play() |
Try this
1 | local tween = game:GetService( "TweenService" ) |
2 | local tweeninfo = TweenInfo.new( 10 , Enum.EasingStyle.Linear, Enum.EasingDirection.In, 1000 , true , 0 ) |
3 | local tweenProperties = { Position = Vector 3. new(- 16 , 10 , - 6 ) } |
4 | local tween = tween:Create(script.Parent, tweeninfo, tweenProperties) |
5 | tween:Play() |
Possible fixes: Try not setting the delay (last argument) to nil and set it to 0 instead. Make sure the part isn't anchored and make sure that part isn't in the same spot you're tweening it to.