File size: 308 Bytes
962500b
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
Client.OnStart = function()
	Camera:SetParent(World)

	local ui = require("uikit")

	local text = ui:createText("hello world!", Color.Black)
	text.parentDidResize = function(self)
		self.pos = { Screen.Width * 0.5 - self.Width * 0.5, Screen.Height * 0.5 - self.Height * 0.5 }
	end
	text:parentDidResize()
end