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

GUI moving automatically using a script? [UNSOLVED]

Asked by
RAYAN1565 691 Moderation Voter
10 years ago

I have made this script right here, that is suppose to move a "TextLabel," but it doesn't seem to work. Anything I'm doing wrong or is this fine the way it is?

for count = 1, 0, -0.02 do
    script.Parent.TextLabel1:TweenPosition(UDim2.new(0.4, 0, count, 0))
    wait(0.1)
end

1 answer

Log in to vote
0
Answered by 10 years ago

local move = {script.Parent} -- Suppose This Scripts Parent Is your TextLabel

while wait(0.09) do -- Change Time To However Long It Waits Before Moving for _,v in pairs(move) do local temp = v.Position.X.Scale if (temp <= -v.Size.X.Scale) then temp = 1.0 end v.Position = UDim2.new(temp - 0.01, 0, 0, 0) --Chage This To However You Want It To Move end end

This Should Work

Ad

Answer this question