Tween not moving

This does not tween it into position:

local Object = script.Parent
wait(1)
Object.Position = UDim2.new(0.5,0,-0.2,0)
wait(1)
Object.AnchorPoint = Vector2.new(0.5,0)
Object:TweenPosition(UDim2.new(0.5,0,-0.2,0), Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, 1)

StarterGui>LoadingScreen>LoadingFrame>LoadingText>LocalScript (This script)

Does it need to be a server script?

The reason why it’s not doing anything is because the Gui instance is remaining at the same place.

You already defined its position and you’re tweening it to its same position, therefore it’s already at its destination.

3 Likes

Ohh, I did not look at that. Sorry, Ill just check that.

local Object = script.Parent
wait(1)
Object.Position = UDim2.new(0.5,0,-0.2,0)
wait(1)
Object.AnchorPoint = Vector2.new(0.5,0)
Object:TweenPosition(UDim2.new(0.5,0,-0,0), Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, 1

This will work, I suppose?

did you try it? don’t expect someone to try it out for you

Yep it worked. Thanks all! :slight_smile:

Another issue: Script not running/tweening