Error on line 11, (slider:TweenPosition)
local gui = script.Parent.Parent local frame = script.Parent local slider = frame.slider local page = frame.page for i,object in pairs(frame:GetChildren()) do if object:IsA("TextButton") then object.Text = object.Name object.MouseButton1Click:Connect(function() slider:TweenPosition(UDim2.new(object.Position.X, object.Position.Y + 0.026),Enum.EasingDirection.Out, Enum.EasingStyle.Elastic,0.5,true) end) end end
From my own knowledge and memory, easingstyle comes first before easing direction, s swap their positions.
ALSO udim2.new has 4 paramertres (x,xoffset,y,yoffset) and u only put 2