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

How do I make it so that A frame GUI changes position every second?

Asked by 10 years ago

Please Answer, don't be mean to me.

Thanks, ramboyelectrix

2 answers

Log in to vote
0
Answered by
lolb3 0
10 years ago
local frame = script.Parent
local pos = 1
while wait(1) do
frame:TweenPosition(UDim2.new(.5, (pos),0,(pos)), "Out", "Quad", 1, true)
pos = pos + 1
end
0
I want it to move in one position Like it will move to the middle and once it hits the position "0,550" It will stop ramboyelectrix 0 — 10y
Ad
Log in to vote
0
Answered by 10 years ago
local frame = script.Parent
while true do
frame:TweenPosition(UDim2.new(math.random(0,1),0,math.random(0,1),0), "Out", "Quad", 1, true)
Wait(1)
end

Try that, it should work.

Answer this question