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
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