Add world.lua
Browse files
world.lua
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Client.OnStart = function()
|
| 2 |
+
Camera:SetParent(World)
|
| 3 |
+
|
| 4 |
+
local ui = require("uikit")
|
| 5 |
+
|
| 6 |
+
local text = ui:createText("hello world!", Color.Black)
|
| 7 |
+
text.parentDidResize = function(self)
|
| 8 |
+
self.pos = { Screen.Width * 0.5 - self.Width * 0.5, Screen.Height * 0.5 - self.Height * 0.5 }
|
| 9 |
+
end
|
| 10 |
+
text:parentDidResize()
|
| 11 |
+
end
|