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

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

Please Answer, don't be mean to me.

Thanks, ramboyelectrix

2 answers

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

1 comment

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

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.

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