-
What do you want to achieve? I want to clone gui
-
What is the issue? Not even a snigle point is cloned
the point you see is just for cloining
-
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.