How to make the frame move down?

i want to make the frame move down but i’m a noob in term of gui’s

code:

while true do
			wait()
			script.Parent.AchievementGui.AchievementFrame.Position += UDim2.new({0, 0},{0.001, 0})
		end

You can just use TweenService to smoothly move the frame.

local TweenService = game:GetService("TweenService")
local Frame = [Your frame here]
local Tween = TweenService:Create(Frame, TweenInfo.new(Put params here), {Position = [Put goal UDim2 position here]}

Tween:Play()
		local Frame = "AchievementFrame"
		local Tween = TweenService:Create(Frame, TweenInfo.new(), {Position = UDim2.new({0, 0},{0.001, 0})}

idk if its good but tween is unknown on tween:play()

Firstly, you have to define local Frame as the frame you are moving, like this:

local Frame = script.Parent.AchievementGui.AchievementFrame

Secondly, set the Position in the to your goal position. For example, if you wanted your Frame to end up half-way on your screen on the Y-Axis, it would be:

local Tween = TweenService:Create(Frame, TweenInfo.new(0.5), {Position = UDim2.new(0, 0, 0.5, 0)}

By the way, the 0.5 in TweenInfo.new means it will take 0.5 seconds for the frame to reach its goal position.

Edit
Remove the curly brackets from UDim2.new()
It should look like UDim2.new(0, 0, 0.5, 0)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.