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

Tweening - Why wont my tweening animation script work? how to fix it?

im trying to make an animation thing, and i did some debugging, but no errors are left, so i checked through my code using print but everything does what its supposed to and script after the tween works, but why wont the tween work? i looked it up. here is part of my card trust me this is all youll need. I will answer questions.

i feel like this is one of those painfully obvious simple answers, but i just cant figure it out.

part of script:

elseif event == "deselect" and can == true then
		
		can = false
		selected = false
		
		part.s.Transparency = 1
		
		
		for i = 0,1,.1 do

			wait()
			game.Players.LocalPlayer.PlayerGui.TRIGGER_grabFishingPole.a.b.TextTransparency = i

		end
		
		
		ts = game.TweenService
		ti = TweenInfo.new(1, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out)
		properties = {Position = UDim2.new(-0.11, 0, 0.789, 0)}
		tween = ts:Create(game.Players.LocalPlayer.PlayerGui.TRIGGER_grabFishingPole.a, ti, properties)
		wait(1)
		
		
		
		game.Players.LocalPlayer.PlayerGui.TRIGGER_grabFishingPole.Enabled = false
		
		can = true

all help is appreciated thx

4 comments

0

the gui is fine i tested everything, i testing n otweening it still works, its not the gui problem

0

I might be wrong but isn't it TweenSize

0

Or tweenposition

0

TweenService allows you to create a tween with any instance, and any property.

1 answer

✓ Accepted answer

The tween you have created is never played, and therefore never changes the properties. You will need to play the tween, by calling the :Play() function of the tween you have created

1 comment

0

thanks i forgot lol

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