bgui = script.Parent.Parent.Board.SurfaceGui.ScrollingFrame button = script.Parent
function onClicked(click) if bgui:FindFirstChild("ImageLabel") then local image1 = Instance.new("ImageLabel", bgui) image1.Position = UDim2.new(0,0,0,35) image1.Position = image1.Position + UDim2.new(0,120,0,0) image1.Size = UDim2.new(0,100,0,520) image1.Name = "" ..game.Players.LocalPlayer.Name image1.BackgroundColor3 = Color3.new(255, 255, 255) elseif bgui:FindFirstChild("ImageLabel") == nil then local image2 = Instance.new("ImageLabel", bgui) image2.Position = UDim2.new(0,10,0,35) image2.Size = UDim2.new(0,100,0,520) image2.Name = "" ..game.Players.LocalPlayer.Name image2.BackgroundColor3 = Color3.new(255, 255, 255) end end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
-- Basically trying to add onto the position everytime I click where it says "image1.Position = image1.Position + UDim2.new(0,120,0,0)" but it doesn't add the position on and it keeps at 120, please help. Someone said it might be something wrong with the other code.

1 comment
Please use code blocks. This hurts my eyes.