Gui not cloning

  1. What do you want to achieve? I want to clone gui

  2. What is the issue? Not even a snigle point is cloned
    image
    the point you see is just for cloining
    image

  3. What solutions have you tried so far? No

local script

local Module = require(script.Parent:WaitForChild("ModuleScript"))
local Point = script.Parent:WaitForChild("Frame"):WaitForChild("StatsFrame"):WaitForChild("LinesFrame"):WaitForChild("point")

--[[
DateStored>
	TableOfTime>
			Date,
			minutes
	,
<

]]
local Today = {
	{9,26},{8,30},{7,40},{6,50},{9,60}
}

Module.Draw_Point(Today, Point)

the code does just defind module and point to clone and today is just table of time to convert them to x,y don’t worry about the table,

Module


function module.Draw_Point(T, Point)
	--[[
	DateStored>
		TableOfTime>
			Date,
			minutes
	,
	Table>
		Table>
			X,
			Y
	]]
	

	for i,Data in pairs(T) do
		print(Data)
		local Date = Data[1] -- hours 
		local Minutes = Data[2] -- minutes
		local ClonedPoint = Point:Clone() -- issue
		ClonedPoint.Position = UDim2.fromScale(Time_To_X(Date),Time_To_Y(Minutes)) -- positioning 
		ClonedPoint.BackgroundTransparency = 0 -- make it visible
	end
end

The code does just loop through table then conver time to x,y then position them, But the issue here they arenot clooning they just print date.
image

You forgot to parent the cloned point to the frame

The main point is inside frame it should clone the properties or not?

when an instance is cloned its parent property is set to nil

Weird, It should but thanks anyway :heart:.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.