chore: refractor
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
--!native
|
||||
--!optimize 2
|
||||
|
||||
if not game:IsLoaded() then
|
||||
game.Loaded:Wait()
|
||||
end
|
||||
|
||||
pcall(function()
|
||||
task.synchronize()
|
||||
task.defer(function()
|
||||
game:GetService("Workspace"):WaitForChild("$blockscraft_server",9e9):Destroy()
|
||||
end)
|
||||
end)
|
||||
|
||||
local ReplicatedStorage = game:GetService("ReplicatedStorage")
|
||||
|
||||
local objects = ReplicatedStorage:WaitForChild("Objects", 9e9)
|
||||
objects:WaitForChild("MLLoaded", 9e9)
|
||||
objects:WaitForChild("CSMLLoaded", 9e9)
|
||||
|
||||
do
|
||||
local PM = require(ReplicatedStorage:WaitForChild("Shared"):WaitForChild("PlacementManager"))
|
||||
PM:Init()
|
||||
end
|
||||
|
||||
do
|
||||
local CM = require(ReplicatedStorage:WaitForChild("Shared"):WaitForChild("ChunkManager"))
|
||||
CM:Init()
|
||||
end
|
||||
@@ -0,0 +1,9 @@
|
||||
--!native
|
||||
--!optimize 2
|
||||
|
||||
local ReplicatedStorage = game:GetService("ReplicatedStorage")
|
||||
local objects = ReplicatedStorage:WaitForChild("Objects", 9e9)
|
||||
objects:WaitForChild("MLLoaded", 9e9)
|
||||
objects:WaitForChild("CSMLLoaded", 9e9)
|
||||
|
||||
return
|
||||
4
StarterPlayer/StarterPlayerScripts/Actor/init.meta.json
Normal file
4
StarterPlayer/StarterPlayerScripts/Actor/init.meta.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"className": "Actor",
|
||||
"ignoreUnknownInstances": true
|
||||
}
|
||||
12
StarterPlayer/StarterPlayerScripts/CmdrClient.client.lua
Normal file
12
StarterPlayer/StarterPlayerScripts/CmdrClient.client.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
repeat
|
||||
wait(0.1)
|
||||
until game:IsLoaded() == true
|
||||
|
||||
local ReplicatedStorage = game:GetService("ReplicatedStorage")
|
||||
|
||||
local objects = ReplicatedStorage:WaitForChild("Objects", 9e9)
|
||||
objects:WaitForChild("MLLoaded", 9e9)
|
||||
objects:WaitForChild("CSMLLoaded", 9e9)
|
||||
|
||||
local Cmdr = require(ReplicatedStorage:WaitForChild("CmdrClient"))
|
||||
Cmdr:SetActivationKeys({ Enum.KeyCode.F2 })
|
||||
Reference in New Issue
Block a user