I am making a GUI where you can select and delete stuff. For the deleting part, I want a shaking part. I have already done that. But I want it to like move the button's position, but it errors "Offset cannot be assigned to" whenever I put this in my script.
game:GetService('RunService').Heartbeat:Connect(function()
if not deleting then --Activates if the user clicks the delete button, so it can stop rotating and repositioning.
pcall(function()
layout.Parent = script.Parent
end)
for i, v in pairs(items) do
v.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
v.TextColor3 = Color3.fromRGB(27, 42, 53)
end
script:Clone().Parent = script.Parent
script:Destroy()
end
if order == 'Asending' then
position = position + .5
for i, v in pairs(items) do
v.Rotation = v.Rotation + 4
v.Position.Y.Offset = v.Position.Y.Offset + position --This is the line that errors.
print(v.Position.Y.Offset)
end
if items[1].Rotation == 20 then
order = 'Desending'
end
elseif order == 'Desending' then
for i, v in pairs(items) do
v.Rotation = v.Rotation - 4
end
if items[1].Rotation == -20 then
order = 'Asending'
end
end
end)
Remember, all of the variables are defined. "Items" is a table full of the buttons that the user can delete. Any idea?

3 comments
Read your Bio.
its in a localscript...............
hiimgoodpack, Don't know what you are trying to do here.