add corescripts to 3d preview

This commit is contained in:
Bitl 2021-11-04 09:34:45 -07:00
parent cb951017a8
commit 12ec5b33c5
4 changed files with 3637 additions and 7 deletions

View File

@ -1,6 +1,6 @@
@ECHO OFF
SET debug=1
SET debug=0
SET basedir=%CD%\scripts
SET gamescriptdir=%basedir%\game
@ -99,6 +99,11 @@ SET launcherscriptdir=%basedir%\launcher
if not exist "%launcherscriptdir%" mkdir "%launcherscriptdir%"
if not exist "%launcherscriptdir%/3DView" mkdir "%launcherscriptdir%/3DView"
XCOPY "%cd%\Novetus\bin\preview\content\scripts\CSView.lua" "%launcherscriptdir%/3DView" /y
SET previewcores=%launcherscriptdir%\3DView\cores
if not exist "%previewcores%" mkdir "%previewcores%"
XCOPY "%cd%\Novetus\bin\preview\content\scripts\cores\*.lua" "%previewcores%" /sy
XCOPY "%cd%\Novetus\bin\preview\content\fonts\3DView.rbxl" "%launcherscriptdir%/3DView" /y
XCOPY "%cd%\Novetus\bin\data\Appreciation.rbxl" "%launcherscriptdir%" /y
XCOPY "%cd%\Novetus\config\ContentProviders.xml" "%launcherscriptdir%" /y

View File

@ -1,6 +1,9 @@
settings().Rendering.FrameRateManager = 2
dofile("rbxasset://scripts\\cores\\StarterScript.lua")
pcall(function() game:GetService("ScriptContext").ScriptsDisabled = false end)
game.CoreGui.RobloxGui:Remove()
game.CoreGui.RobloxGui.TopLeftControl:Remove()
game.CoreGui.RobloxGui.BottomLeftControl:Remove()
game.CoreGui.RobloxGui.BottomRightControl:Remove()
game.GuiRoot.RightPalette:Remove()
game.GuiRoot.ChatMenuPanel:Remove()
game.GuiRoot.ScoreHud:Remove()
@ -428,10 +431,6 @@ function CS3DView(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorI
InitalizeClientAppearance(plr,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,ItemID)
wait(0.5)
LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character,false)
game.Workspace:InsertContent("rbxasset://Fonts//libraries.rbxm")
newWaitForChild(game.StarterGui, "Playerlist")
game.StarterGui.Playerlist:clone().Parent = plr.PlayerGui
local target = game.Workspace.Base.SpawnLocation
local camera = game.Workspace.CurrentCamera

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,23 @@
-- Creates all neccessary scripts for the gui on initial load, everything except build tools
-- Created by Ben T. 10/29/10
-- Please note that these are loaded in a specific order to diminish errors/perceived load time by user
delay(0, function()
print("Accurate CS by Matt Brown.")
local function waitForChild(instance, name)
while not instance:FindFirstChild(name) do
instance.ChildAdded:wait()
end
end
local function waitForProperty(instance, property)
while not instance[property] do
instance.Changed:wait()
end
end
waitForChild(game:GetService("CoreGui"),"RobloxGui")
dofile("rbxasset://scripts\\cores\\PlayerlistScript.lua")
end)