Compare commits

...

2 Commits

Author SHA1 Message Date
teverse 5c70b55a67 char 2019-12-12 19:53:44 +00:00
teverse 68317c6de3 yrdy 2019-12-12 19:51:15 +00:00
2 changed files with 6 additions and 5 deletions

View File

@ -6,13 +6,11 @@ print("Hello Client!")
require("tevgit:core/client/debug.lua")
require("tevgit:core/client/chat.lua")
require("tevgit:core/client/playerList.lua")
require("tevgit:core/client/characterController.lua")
workspace.camera.position = vector3(0, 15, -10)
workspace.camera:lookAt(vector3(0, 0, 0))
-- Stealing camera from workshop
require("tevgit:workshop/controllers/environment/camera.lua")
local function registerBlock(c)
if c.className == "block" then
c:once("mouseLeftPressed", function ()

View File

@ -5,6 +5,7 @@ print("Hello Server!")
require("tevgit:core/server/debug.lua")
require("tevgit:core/server/chat.lua")
local char = require("tevgit:core/server/characterController.lua")
workspace:destroyAllChildren()
@ -64,7 +65,7 @@ local function fillSpace(x, y, z)
name = "minable",
position = vector3(x * 4, y * 4, z * 4),
size = vector3(4, 4, 4),
colour = colour:random(),
colour = colour:fromRGB(math.random(55, 85), math.random(40, 60), 5),
static = true
})
@ -128,4 +129,6 @@ engine.networking:bind( "mineBlock", function( client, x, y, z )
fillSpace(x, y, z + 1)
end
end
end)
end)
print("server loaded")