Need help why its cloning the gui twice instead of cloning it once

So basicly why its cloning 2 player templates to show the player instead of one.

So the issue is that its cloning a gui twice and idk why it does here is the part where its getting cloned inside a module script

function GuiHandler.new(Player)
	if not Map then
		return
	end
	
	local Number_Of_Levels = #Map:GetChildren()
	
	local LastLevel = Map:FindFirstChild(tostring(Number_Of_Levels))
	local CellingHeight = LastLevel.End.CFrame.Y
	
	local self = {
		["Player"] = Player,
		["Frame"] = PlayerTemplate:Clone(), ---here
		
		["Max"] = CellingHeight,
	}
	
	
	if self.Frame:FindFirstChild("PFP") then
		self.Frame.PFP.Image = PlayerService:GetUserThumbnailAsync(Player.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size180x180)
	end
	
	self.Frame.Parent = HeightBar --------here
	
	
	return setmetatable(self, GuiHandler)
end

And it will look like this

https://gyazo.com/9a39d5bcfde456e28679de5eb9da7e95

and here is where the issue is to see better

https://gyazo.com/503e61e1e7c3c7ff8c06c6a479fcc9ab

so basicly the middle one is the one not moving(That one i need to be gone) the script and all works fine its just that its cloning it twice and thast is what i should get rid of.

any help will be appriciated if you want the whole module script or the local script just let me know if needed

I have tried some diffrent thing but either it will get errored or just not work as it should

2 Likes