Building Placement wont start

Hi!
Here’s a video of it, and what i THINK is the problematic code.

local UserI = Player.PlayerGui:WaitForChild("Build"):WaitForChild("e")
repeat task.wait() until lastloc ~= nil
for i, button in pairs(lastloc:GetChildren()) do
	if button:IsA("ViewportFrame") then
		button:WaitForChild("Select").MouseButton1Click:Connect(function()
			BanPlacing = false
			JustPlaced = true
			if Module[button.Name] then
				require(game.ReplicatedStorage.Building).StartPlacementUI(Player)
--				UserI.Parent.Parent.Plot.Placing.chooseplot.Text = "Placing "..button.Name
				JustPlaced = true
				local function AutoPlace()
					while task.wait(.01) do
						if JustPlaced == true then
							JustPlaced = false
							if Module[button.Name].PlacementType == "Floor" then PlaceFloor()
							elseif Module[button.Name].PlacementType == "Wall" then PlaceWall(button.Name)
							elseif Module[button.Name].PlacementType == "FloorItem" then PlaceFloorItem(button.Name)
							end
						end
						if ShouldBreak then ShouldBreak = false; break end
					end
				end
				AutoPlace()
			end
		end)
	end
end

I don’t know what’s wrong with it as there isn’t an error in the console.
Thanks for any help!

*I found out that the Placing… thing WAS appearing, it’s just invisible- and it’s just something wrong with it’s not starting placement.