Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local repStorage = game:GetService('ReplicatedStorage')
- local PT_DIRECTORY = repStorage:WaitForChild('PT_DIRECTORY')
- local module = {}
- function module:CreateGraph(name)
- local graphDir = Instance.new("Folder")
- graphDir.Name = name
- graphDir.Parent = PT_DIRECTORY
- return graphDir
- end
- function module:NewPoint(graphDir, x, y)
- local obj = Instance.new("Vector3Value")
- obj.Value = Vector3.new(x, -y, 0)
- obj.Name = #graphDir:GetChildren() + 1
- obj.Parent = graphDir
- return obj
- end
- function module:GetPoint(graphDir, num)
- return graphDir:FindFirstChild(tostring(num))
- end
- return module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement