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

Why will the frame not move when i click the button?

i want the frame to move up when i click a button.. it isn't working..

local frame = script.Parent.Parent.Parent.Frame
local enabled = false
script.Parent.MouseButton1Click:Connect(function()
if enabled == false then
		frame.Position = Vector2.new(0,1,0) --move up i think
enabled = true
end
end)

pleas help if possible!

2 answers

Well, perhaps an easier way is if you used TweenService.

frame:TweenPosition(UDim2.new(0,0,0,0), "InOut", "Sine", 1)

Make sure you edit the position (the 4 numbers) into the position you want it to go to.

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