Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I need some help with tweening. It is not moving but there are no errors. Can anyone help?

Asked by 7 years ago
Edited by Shawnyg 7 years ago

So my problem is that I want my logo to bounce to the middle of the screen and then bounce to the upper left corner. Thing is...It doesn't move

There are no console errors, and it is not in a frame, I know that I am not moving a frame instead

I have tried 3 different ways, no one on Roblox forums knew/told me. I am hoping that this community can help me

Try Number One:

local welcome = script.Parent:WaitForChild('Logo').ImageLabel

welcome:TweenPosition(UDim2.new(0.4,0,0.5,0), 'In', 'Bounce', 3)
wait(3)
welcome:TweenPosition(UDim2.new(0.02,0,0.2,0), 'Out', 'Bounce', 3)

Try Number Two:

local welcome = script.Parent:WaitForChild('ImageLabel')

welcome:TweenPosition(UDim2.new(0.4,0,0.5,0), 'In', 'Bounce', 3)
wait(3)
welcome:TweenPosition(UDim2.new(0.02,0,0.2,0), 'Out', 'Bounce', 3)

Try Number Three:

local welcome = script.Parent:WaitForChild('ImageLabel')

welcome:TweenPosition(UDim2.new(0.4,0,0.5,0), 'Out', 'Bounce', 3)
wait(3)
welcome:TweenPosition(UDim2.new(0.02,0,0.2,0), 'Out', 'Bounce', 3)
0
I cannot see any problems with this code, can you add in some prints to check what is being ran. User#5423 17 — 7y
0
There is no need to make everything bold. It's supposed to be used for emphasis. Shawnyg 4330 — 7y
0
Sorry Shawnyg, I'll remember for the future. Kingdom5 thank you for telling me that I ppinned the problem in my code, I put a print confirming it ran and I put a print confirming it found the ImageLabel and 2 saying it tweened. The console printed it started but did not print anything after. mark11101 5 — 7y

1 answer

Log in to vote
0
Answered by
RubenKan 3615 Moderation Voter Administrator Community Moderator
7 years ago
Edited 7 years ago

The only thing i can think of is that you're using a script instead of a localscript.

Scripts dont't support tweening, thus, a localscript is required.

If you're already using a localscript, make sure you're actualy tweening what you'd expect to be tweened (Lets say imagelabel might be transparent or size {0,0},{0,0}).

0
The local script did not work, and I made sure I was moving the right one. But now I do know I need a localscript to tween with thank you RubenKan mark11101 5 — 7y
Ad

Answer this question