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!
You shouldn't use Vector2 for Frames, you should use UDim2.new(). Read more about UDim2 here.
frame.Position = UDim2.new(0,0,0,0) -- make sure to edit these values!
If this helps, then please accept this answer!
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.