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

my gui not tweening and dissapears?

Asked by 3 years ago

hello so i have a code that isnt finished yet and i have this problem:

local TweenService = game:GetService("TweenService")
local arrow = game.Players.LocalPlayer.PlayerGui.ScreenGui.Fishcatcharrow
local tween = 483
arrow.AnchorPoint = Vector2.new(0.5, 0.5) 
arrow.Position = UDim2.new(0.483, 0,0.032, 0)
wait(9)

  repeat
     repeat
        tween = tween + 1
        local arrowgoal = {}
        arrowgoal.Position = UDim2.fromScale(tween, 0.032)
        local arrowinfo = TweenInfo.new(0.02)
        local arrowtween = TweenService:Create(arrow, arrowinfo, arrowgoal)

        arrowtween:Play()
        wait(0.02)
       until 1 == 3

  until tween >= 741 or tween <= 225

this is my code and when i activate "arrow" should tween but its just dissapear and server shows its there not moved

anyone knows why its happening?

Answer this question