Ok i done this kind of stuff before but every button collides when clicked
clicking on anything will bring it to it’s position again
Code
local Taskbar = script.Parent.Parent.Parent:WaitForChild('Taskbar')
local Left = Taskbar:WaitForChild('Left')
for i,taskbarButtons in ipairs(Left:GetChildren()) do
if taskbarButtons:IsA('ImageButton') then
taskbarButtons.MouseButton1Down:Connect(function()
taskbarButtons:TweenPosition(UDim2.new(0.115, 0,0.05, 0), 'Out', 'Linear', .01)
end)
taskbarButtons.MouseButton1Up:Connect(function()
taskbarButtons:TweenPosition(UDim2.new(0.11, 0,0, 0), 'Out', 'Linear', .01)
end)
taskbarButtons.MouseLeave:Connect(function()
taskbarButtons:TweenPosition(UDim2.new(0.11, 0,0, 0), 'Out', 'Linear', .01)
end)
end
end```