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

2 comments
I am guessing you want to tween the gui?
Yes