Compare commits

...

2 Commits

Author SHA1 Message Date
teverse 386fd88740 test 2019-12-09 21:48:47 +00:00
teverse 74b4b09a49 update client demo 2019-12-09 21:27:02 +00:00
2 changed files with 8 additions and 8 deletions

View File

@ -13,12 +13,7 @@ workspace.camera:lookAt(vector3(0, 0, 0))
-- Stealing camera from workshop
require("tevgit:workshop/controllers/environment/camera.lua")
engine.construct("block", workspace, {
position = vector3(0, 20, 0),
static = false
})
workspace:childAdded(function(c)
local function registerBlock(c)
if c.className == "block" then
c:once("mouseLeftPressed", function ()
if c.size == vector3(4, 4, 4) then
@ -27,4 +22,7 @@ workspace:childAdded(function(c)
end
end)
end
end)
end
workspace:childAdded(registerBlock)
for _,v in pairs(workspace.children) do registerBlock(v) end

View File

@ -128,4 +128,6 @@ engine.networking:bind( "mineBlock", function( client, x, y, z )
fillSpace(x, y, z + 1)
end
end
end)
end)
print("all loaded")