-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAPI_Recreation.luau
3324 lines (3173 loc) · 168 KB
/
API_Recreation.luau
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
--[[
XANE'S RECREATOR API, WRITTEN IN 2024
LAST UPDATED ON JANUARY 11TH, 2025
A script that adds common functions to any Roblox script intended for saving
most instances to JSON files, which can be used with Xane's Asset Importer, a
Roblox Studio plugin! This script is used (automatically loaded) by my main
scripts, such as "Xane's Model Recreator" and "RH Accessory Preserver",
letting me do the main thing I use exploits for, to save models and assets
from Roblox games, especially Royale High.
There aren't any instructions for how you can utilize this API in your
scripts yet, but you can look at and modify Xane's Model Recreator's code,
which loads this code using a LoadString, adding its functions and variables
under getgenv().XRecreator. From here, call
getgenv().XRecreator.Activate(true), then you can use functions like
getgenv().XRecreator.Select("set", {[instances]}) to select things and
getgenv().XRecreator.Save("[filename without JSON extension") to save those
instances and their descendants to JSON files. If you're a good scripter,
you'll quickly learn how to use this "API" to your advantage!
]]--
-- Comments with four hyphens before them relate to Xane's Model Recreator's "message" instance; Since this script was split from it,
-- it included references to part of its GUI, which shouldn't be modified by a script that's intended to be used for general saving
-- scripts. I don't know what to do with the references so they were commented out if they weren't turned into DisplayError() calls.
if not game:IsLoaded() then game.Loaded:Wait() end
task.wait(0.2)
print("Xane's model recreation API is initializing... (Please work!)")
local CoreGui = game:GetService("CoreGui")
-- The recreator's API has to display its current status somewhere! While other scripts can link it to a TextLabel, it'll use its own GUI
-- if one isn't provided. (This wasn't generated by the usual GUI to Lua plug-in!)
local built_in_gui : ScreenGui = CoreGui:FindFirstChild("RecreatorFallbackGUI")
local built_in_status : TextLabel = nil
local built_in_error : TextLabel = nil
if not built_in_gui then
built_in_gui = Instance.new("ScreenGui")
built_in_gui.Name = "RecreatorFallbackGUI"
built_in_gui.IgnoreGuiInset = true
built_in_gui.Enabled = true
built_in_gui.Parent = CoreGui
end
built_in_status = built_in_gui:FindFirstChild("StatusLabel")
if not built_in_status then
built_in_status = Instance.new("TextLabel")
built_in_status.Name = "StatusLabel"
built_in_status.AnchorPoint = Vector2.one / 2
built_in_status.Position = UDim2.fromScale(0.5, 0.5)
built_in_status.BackgroundColor3 = Color3.new(0.2, 0.25, 0.4)
built_in_status.BackgroundTransparency = 0.25
built_in_status.TextColor3 = Color3.new(0.8125,0.625,0.95)
built_in_status.TextStrokeColor3 = Color3.new(0.125,0.0925,0.0475)
built_in_status.TextStrokeTransparency = 0
built_in_status.Text = "Indexing instances... (1/10)"
built_in_status.Visible = false
built_in_status.Parent = built_in_gui
end
built_in_error = built_in_gui:FindFirstChild("ErrorMessage")
if not built_in_error then
built_in_error = Instance.new("TextLabel")
built_in_error.Name = "ErrorMessage"
built_in_error.AnchorPoint = Vector2.new(0.5, 1)
built_in_error.Position = UDim2.fromScale(0.5, 0.875)
built_in_error.BackgroundColor3 = Color3.new(0.125, 0.125, 0.125)
built_in_error.BackgroundTransparency = 0.125
built_in_error.TextColor3 = Color3.new(1, 0.95, 0.975)
built_in_error.Text = "Something went wrong. Please try again later."
built_in_error.Visible = false
built_in_error.Parent = built_in_gui
end
-- All Recreator-related functions will be added to the executor's private environment/dictionary entry so any scripts that utilize
-- them can control my iffy "API" and easily save any instance to a JSON file.
local env = getgenv and getgenv() or _G
if not env then error("Your executor sucks! Couldn't find a suitable environment for Xane's recreator API.") end
if not env.XRecreator then
env.XRecreator = {
Select = nil, -- Public functions
MakeList = nil,
Save = nil,
ActivateAPI = nil,
EmptyDebugIDCache = nil,
SetStatusGui = nil,
Reserved = false, -- Public variables
IgnoreAttrib = "Dummy",
Selection = {},
FullList = {},
StatusGui = built_in_status
}
end
-- The contents of getgenv().XRecreator after the Recreation API initializes. These functions send commands to the API, making
-- it very easy to automate actions like selecting Instances, saving them to JSON files, and loading stuff FROM those files.
type ModelRecreatorStruct = {
-- FUNCTIONS
Select : (_mode:"set"|"add"|"remove", _list:{Instance}) -> (), -- Updates the API's selection.
MakeList : (_baseInst : Instance) -> (nil), -- Generates a series of list entries, for GUI's that display one.
Save : (_name:string,_rescan:boolean) -> (boolean), -- Saves selection to files. Will fail on invalid filenames.
CustomizeProgressBox:(_message : string, _total : number) -> (), -- Affects the text shown in "saving"/"indexing" GUI (may be unusable).
ActivateAPI : (_use : boolean) -> boolean, -- Requests to use API functions. If in use, this returns FALSE.
SetStatusGui: (_gui:TextLabel) -> (nil), -- Changes GUI that save status is shown in. Set to nil to use default.
OnSaveDone : (_success : boolean) -> (), -- External code ran upon finishing. Used for other scripts' cleanup.
IsInstanceAllowed : (_instance : Instance) -> (boolean), -- Checks if an Instance's type is safe to save. (Model Recreator v3)
Load : (_header:string,_pieces:{string},_dest:Instance?) -> (XRecreatorImportResult?), -- Import previously saved JSON instances.
LoadFile : (_saveName:string,_dest:Instance?) -> (XRecreatorImportResult?), -- Loads from a JSON capture set, passing to Load().
EncodeValueForJSON : (_value : any, _type : string) -> (any), -- Converts Roblox types to basic arrays compatible with JSON.
DecodeValueFromJSON : (_value : any, _type : string) -> (any), -- Attempts to turn a converted value back into a specific type.
-- VARIABLES
Reserved : boolean, -- Set to TRUE after a script calls ActivateAPI().
IgnoreAttrib: string, -- Instances with this attribute won't be scanned.
Selection : {Instance}, -- List of instances marked to be saved.
FullList : {InternalListEntry}, -- List generated by MakeList(), which can be used by scripts' GUIs.
StatusGui : TextLabel, -- Reference to current label that save/index statuses are shown in.
PageLength : number, -- How many instances SHOULD be shown on list pages. (Not used by API.)
AntiLagInterval : number, -- How many instances to parse before waiting, to reduce lag.
ClassData : {ClassDefinition} -- This script's "Roblox class API" (read-only).
}
local Recreator : ModelRecreatorStruct = env.XRecreator -- Let's simplify references to the API by just defining a new "shortcut" variable.
local ScriptName = "Recreator API: "
-- SERVICES
local Players = game:GetService("Players") -- These are the three locations that can be accessed using this script.
local Lighting = game:GetService("Lighting")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerStorage = game:GetService("ServerStorage") -- This container stores the four "container imposter" Models for redirection.
local MaterialService = game:GetService("MaterialService")
local StarterGui = game:GetService("StarterGui")
local SoundService = game:GetService("SoundService")
local StarterPack = game:GetService("StarterPack")
local HttpService = game:GetService("HttpService")
-- REFERENCES (PARTIAL, NOT INCLUDING GUI)
local PlayerGui = Players.LocalPlayer:WaitForChild("PlayerGui")
-- STATIC DATA
-- STATIC DATA & FUNCTIONS
-- Arrays of properties shared by multiple classes, used to simplify the main class data array/list below.
-- If any list contains a property starting with "UseCmnList_", the script should iterate through the array named after its value here.
local CommonPropList = {
Instance = {
Name = "string",
Parent = "Instance"
},
Attachment = {
Axis = "Vector3",
SecondaryAxis = "Vector3",
CFrame = "CFrame", -- Set the CFrame last, in case the previous properties are redundant.
Visible = "boolean"
},
Decal = {
Color3 = "Color3",
Face = "EnumItem", -- Inherited from FaceInstance class
LocalTransparencyModifier = "number",
Texture = "string",
Transparency = "number",
ZIndex = "number"
},
Model = {
LevelOfDetail = "EnumItem",
ModelStreamingMode = "EnumItem",
PrimaryPart = "Instance"
},
BasePart = {
Anchored = "boolean",
BackSurface = "EnumItem",
BottomSurface = "EnumItem",
CFrame = "CFrame",
CanCollide = "boolean",
CanQuery = "boolean",
CanTouch = "boolean",
CastShadow = "boolean",
CollisionGroup = "string",
Color = "Color3",
EnableFluidForces = "boolean",
FrontSurface = "EnumItem",
LeftSurface = "EnumItem",
LocalTransparencyModifier = "number",
Locked = "boolean",
Massless = "boolean",
Material = "EnumItem",
MaterialVariant = "string",
PivotOffset = "CFrame",
Reflectance = "number",
RightSurface = "EnumItem",
RootPriority = "number",
Size = "Vector3",
TopSurface = "EnumItem",
Transparency = "number"
},
Constraint = {
Attachment0 = "Instance",
Attachment1 = "Instance",
Color = "BrickColor",
Enabled = "boolean",
Visible = "boolean"
},
JointInstance = {
C0 = "CFrame",
C1 = "CFrame",
Enabled = "boolean",
Part0 = "Instance",
Part1 = "Instance"
},
Light = {
Brightness = "number",
Color = "Color3",
Enabled = "boolean",
Shadows = "boolean"
},
Motor = {
CurrentAngle = "number",
DesiredAngle = "number",
MaxVelocity = "number"
},
SoundEffect = {
Enabled = "boolean",
Priority = "number"
},
WetDrySound = {
DryLevel = "number",
WetLevel = "number"
},
SpotAndSurfaceLight = {
Angle = "number",
Face = "EnumItem",
Range = "number"
},
SurfaceGuiBase = {
Active = "boolean",
Adornee = "Instance",
Face = "EnumItem",
},
BaseWrap = {
CageMeshId = "string",
CageOrigin = "CFrame",
ImportOrigin = "CFrame"
},
PBRMapSet = {
ColorMap = "string",
MetalnessMap = "string",
NormalMap = "string",
RoughnessMap = "string"
},
LayerCollector = { -- Used by ScreenGui's and possibly moe classes.
Enabled = "boolean",
ResetOnSpawn = "boolean",
ZIndexBehavior = "EnumItem"
},
GuiButton = {
AutoButtonColor = "boolean",
Modal = "boolean",
Selected = "boolean",
Style = "EnumItem"
},
GuiObject = {
Active = "boolean",
AnchorPoint = "Vector2",
AutomaticSize = "EnumItem",
BackgroundColor3 = "Color3",
BackgroundTransparency = "number",
BorderColor3 = "Color3",
BorderMode = "EnumItem",
BorderSizePixel = "number",
ClipsDescendants = "boolean",
-- Draggable = "boolean",
Interactable = "boolean",
LayoutOrder = "number",
Position = "UDim2",
Rotation = "number",
Selectable = "boolean",
SelectionOrder = "number",
Size = "UDim2",
SizeConstraint = "EnumItem",
Visible = "boolean",
ZIndex = "number"
},
GuiBase2d = {
AutoLocalize = "boolean"
},
GuiTextElement = { -- TextButtons and TextLabels have the exact same properties!
FontFace = "Font",
LineHeight = "number",
MaxVisibleGraphemes = "number",
RichText = "boolean",
Text = "string",
TextColor3 = "Color3",
TextDirection = "EnumItem",
TextScaled = "boolean",
TextSize = "number",
TextStrokeColor3 = "Color3",
TextStrokeTransparency = "number",
TextTransparency = "number",
TextTruncate = "EnumItem",
TextWrapped = "boolean",
TextXAlignment = "EnumItem",
TextYAlignment = "EnumItem"
},
GuiImageElement = { -- Properties reused between ImageLabels and ImageButtons.
Image = "string",
ImageColor3 = "Color3",
ImageRectOffset = "Vector2",
ImageRectSize = "Vector2",
ImageTransparency = "number",
ResampleMode = "EnumItem",
ScaleType = "EnumItem",
SliceCenter = "Rect",
SliceScale = "number",
TileSize = "UDim2"
},
UIGridStyleLayout = {
FillDirection = "EnumItem",
HorizontalAlignment = "EnumItem",
SortOrder = "EnumItem",
VerticalAlignment = "EnumItem"
}
}
-- A very long, complex array of dictionary entries that specifies what properties should be saved for specific instance classes, and what
-- their types are. This may look almost identical to its plugin counterpart, but there are some differences. For example, MeshParts' MeshId
-- property is included in the script version so it saves its value, but it's commented out in the plugin, since modifying that property
-- directly will cause errors and break its functions.
-- When iterating through one of these property lists, make sure it's always done from top to bottom; Sometimes, the properties have to be set
-- out of alphabetical order! Also, Don't use a "UseCmnList_" definition to inherit from the "Instance" list above! The final script will
-- automatically do that to simplify things.
-- When ay reference to an Instance is found by the Studio plugin, just silently add each of the properties to an array index named after the
-- instance's "intended debug ID", then go back through that list afte all instances have been "imported" and use the complete "debug ID" array
-- to link each of the properties to their intended "reconstructed" instances.
env.XRecreator.ClassData = {
["AdGui"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "📊", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "parent" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
UseCmnList_1 = "LayerCollector", -- Common properties that this class shares with others.
UseCmnList_2 = "GuiBase2d",
UseCmnList_3 = "SurfaceGuiBase",
AdShape = "EnumItem",
EnableVideoAds = "boolean",
FallbackImage = "string",
}
},
["Attachment"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🔌", -- Emoji used to represent this instance when it's unselected.
CreateTest = false, -- Don't attempt to make an Instance of this type if testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
UseCmnList_1 = "Attachment" -- Common properties that this class shares with others.
}
},
["Accessory"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "👚", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "child" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
AccessoryType = "EnumItem",
AttachmentPoint = "CFrame" -- Inherited from Accoutrement (What even is that word?)
}
},
["Animation"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🤺", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
AnimationId = "string"
}
},
["AnimationController"] = { -- AnimationController instances don't have any properties other than standard Instance ones.
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🤺", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
}
},
--[[["Animator"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🤺", -- Emoji used to represent this instance when it's unselected.
CreateTest = false, -- Don't attempt to make an Instance of this type if testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
PreferLodEnabled = "boolean"
}
},]]--
["Atmosphere"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "⛅", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
Color = "Color3",
Decay = "Color3",
Density = "number",
Glare = "number",
Haze = "number",
Offset = "number"
}
},
["Backpack"] = { -- Backpacks don't have any properties other than standard Instance ones.
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🎒", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
}
},
["Beam"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "⚡", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "parent" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
Attachment0 = "Instance",
Attachment1 = "Instance",
LightInfluence = "number", -- Brightness is only used if LightInfluence is set to a low value.
Brightness = "number",
Color = "ColorSequence",
CurveSize0 = "number",
CurveSize1 = "number",
Enabled = "boolean",
FaceCamera = "boolean",
LightEmission = "number",
Segments = "number",
Texture = "string",
TextureLength = "number",
TextureMode = "EnumItem",
TextureSpeed = "number",
Transparency = "NumberSequence",
Width0 = "number",
Width1 = "number",
ZOffset = "number"
}
},
["BillboardGui"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🛑", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
UseCmnList_1 = "LayerCollector", -- Common properties that this class shares with others.
UseCmnList_2 = "GuiBase2d",
Active = "boolean",
Adornee = "Instance",
AlwaysOnTop = "boolean",
Brightness = "number",
ClipsDescendants = "boolean",
DistanceLowerLimit = "number",
DistanceStep = "number",
DistanceUpperLimit = "number",
ExtentsOffset = "Vector3",
ExtentsOffsetWorldSpace = "Vector3",
LightInfluence = "number",
MaxDistance = "number",
Size = "UDim2",
SizeOffset = "Vector2",
StudsOffset = "Vector3",
StudsOffsetWorldSpace = "Vector3"
}
},
["BloomEffect"] = { -- Decals' properties are reused for Textures.
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🌄", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
Enabled = "boolean", -- Inherited from PostEffect class
Intensity = "number",
Size = "number",
Threshold = "number"
}
},
["BlurEffect"] = { -- Decals' properties are reused for Textures.
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🌄", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
Enabled = "boolean", -- Inherited from PostEffect class
Size = "number",
}
},
["Bone"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🦴", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
UseCmnList_1 = "Attachment", -- Common properties that this class shares with others.
Transform = "CFrame"
}
},
["BoolValue"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🔢", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
Value = "boolean"
}
},
["BrickColorValue"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🔢", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
Value = "BrickColor"
}
},
["Camera"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🎥", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Cameras aren't used much outside of ViewportFrames so I don't want to script viewing them.
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
CameraType = "EnumItem",
CameraSubject = "Instance",
FieldOfViewMode = "EnumItem",
DiagonalFieldOfView = "number",
MaxAxisFieldOfView = "number",
FieldOfView = "number",
Focus = "CFrame",
HeadLocked = "boolean",
HeadScale = "number",
VRTiltAndRollEnabled = "boolean",
CFrame = "CFrame"
}
},
["CanvasGroup"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🏢", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
UseCmnList_1 = "GuiObject", -- Common properties that this class shares with others.
UseCmnList_2 = "GuiBase2d",
GroupColor3 = "Color3",
GroupTransparency = "number"
}
},
["CFrameValue"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🔢", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
Value = "CFrame"
}
},
["ChorusSoundEffect"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🔊", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
UseCmnList_1 = "SoundEffect", -- Common properties that this class shares with others.
-- UseCmnList_2 = "WetDrySound",
Depth = "number", -- These are the same properties as FlangeSoundEffect! Consider creating a "common list" of these.
Mix = "number",
Rate = "number"
}
},
["Color3Value"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🔢", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
Value = "Color3"
}
},
["ColorCorrectionEffect"] = { -- Decals' properties are reused for Textures.
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🌄", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
Enabled = "boolean", -- Inherited from PostEffect class
Brightness = "number",
Contrast = "number",
Saturation = "number",
TintColor = "Color3"
}
},
["CompressorSoundEffect"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🔊", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
UseCmnList_1 = "SoundEffect", -- Common properties that this class shares with others.
-- UseCmnList_2 = "WetDrySound",
Attack = "number",
GainMakeup = "number",
Ratio = "number",
Release = "number",
SideChain = "Instance",
Threshold = "number"
}
},
["Configuration"] = { -- Configuration folders don't have any properties other than standard Instance ones.
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "⚙", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
}
},
["CornerWedgePart"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🧱", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "yes" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
UseCmnList_1 = "BasePart" -- Use all of the properties shared by all BasePart instances.
}
},
["Decal"] = { -- Decals' properties are reused for Textures.
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "📄", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
UseCmnList_1 = "Decal", -- Common properties that this class shares with others.
}
},
["DepthOfFieldEffect"] = { -- Decals' properties are reused for Textures.
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🌄", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
Enabled = "boolean", -- Inherited from PostEffect class
FarIntensity = "number",
FocusDistance = "number",
InFocusRadius = "number",
NearIntensity = "number"
}
},
["DistortionSoundEffect"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🔊", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
UseCmnList_1 = "SoundEffect", -- Common properties that this class shares with others.
-- UseCmnList_2 = "WetDrySound",
Level = "number"
}
},
["DoubleConstrainedValue"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🔢", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
MaxValue = "number",
MinValue = "number"
}
},
["EchoSoundEffect"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🔊", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
UseCmnList_1 = "SoundEffect", -- Common properties that this class shares with others.
UseCmnList_2 = "WetDrySound",
Delay = "number",
Feedback = "number"
}
},
["EqualizerSoundEffect"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🔊", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
UseCmnList_1 = "SoundEffect", -- Common properties that this class shares with others.
-- UseCmnList_2 = "WetDrySound",
HighGain = "number",
LowGain = "number",
MidGain = "number"
}
},
["Fire"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🔥", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "parent" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
Color = "Color3",
Enabled = "boolean",
Heat = "number",
SecondaryColor = "Color3",
Size = "number",
TimeScale = "number"
}
},
["FlangeSoundEffect"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🔊", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
UseCmnList_1 = "SoundEffect", -- Common properties that this class shares with others.
-- UseCmnList_2 = "WetDrySound",
Depth = "number", -- These are the same properties as ChorusSoundEffect! Consider creating a "common list" of these.
Mix = "number",
Rate = "number"
}
},
["Folder"] = { -- Folders don't have any properties other than standard Instance ones.
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "📁", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
}
},
["Frame"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🖼", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
UseCmnList_1 = "GuiObject", -- Common properties that this class shares with others.
UseCmnList_2 = "GuiBase2d",
Style = "EnumItem"
}
},
["Highlight"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🔳", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "parent" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
Adornee = "Instance",
DepthMode = "EnumItem",
Enabled = "boolean",
FillColor = "Color3",
FillTransparency = "number",
OutlineColor = "Color3",
OutlineTransparency = "number"
}
},
["HingeConstraint"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🧷", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
UseCmnList_1 = "Constraint", -- Common properties that this class shares with others.
ActuatorType = "EnumItem",
AngularResponsiveness = "number",
AngularVelocity = "number",
LimitsEnabled = "boolean",
LowerAngle = "number",
MotorMaxAcceleration = "number",
MotorMaxTorque = "number",
Radius = "number",
Restitution = "number",
ServoMaxTorque = "number",
TargetAngle = "number",
UpperAngle = "number"
}
},
["Humanoid"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🙍🏼", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
AutoJumpEnabled = "boolean",
AutoRotate = "boolean",
AutomaticScalingEnabled = "boolean",
BreakJointsOnDeath = "boolean",
CameraOffset = "Vector3",
DisplayDistanceType = "EnumItem",
DisplayName = "string",
-- EvaluateStateMachine = "boolean",
Health = "number",
HealthDisplayDistance = "number",
HealthDisplayType = "EnumItem",
HipHeight = "number",
JumpHeight = "number",
JumpPower = "number",
MaxHealth = "number",
MaxSlopeAngle = "number",
NameDisplayDistance = "number",
NameOcclusion = "EnumItem",
PlatformStand = "boolean",
RequiresNeck = "boolean",
RigType = "EnumItem", -- Should this property be captured?
UseJumpPower = "boolean",
WalkSpeed = "number"
}
},
["HumanoidDescription"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "👤", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
BackAccessory = "string",
BodyTypeScale = "number",
ClimbAnimation = "number",
DepthScale = "number",
Face = "number",
FaceAccessory = "string",
FallAnimation = "number",
FrontAccessory = "string",
GraphicTShirt = "number",
HairAccessory = "string",
HatAccessory = "string",
Head = "number",
HeadColor = "Color3",
HeadScale = "number",
HeightScale = "number",
IdleAnimation = "number",
JumpAnimation = "number",
LeftArm = "number",
LeftArmColor = "Color3",
LeftLeg = "number",
LeftLegColor = "Color3",
MoodAnimation = "number",
NeckAccessory = "string",
Pants = "number",
ProportionScale = "number",
RightArm = "number",
RightArmColor = "Color3",
RightLeg = "number",
RightLegColor = "Color3",
RunAnimation = "number",
Shirt = "number",
ShouldersAccessory = "string",
SwimAnimation = "number",
Torso = "number",
TorsoColor = "Color3",
WaistAccessory = "string",
WalkAnimation = "number",
WidthScale = "number"
}
},
["ImageButton"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🏞", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
UseCmnList_1 = "GuiImageElement", -- Common properties that this class shares with others.
UseCmnList_2 = "GuiButton",
UseCmnList_3 = "GuiObject",
UseCmnList_4 = "GuiBase2d",
HoverImage = "string",
PressedImage = "string"
}
},
["ImageLabel"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🏞", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
UseCmnList_1 = "GuiImageElement", -- Common properties that this class shares with others.
UseCmnList_2 = "GuiObject",
UseCmnList_3 = "GuiBase2d"
}
},
["IntValue"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🔢", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
Value = "number"
}
},
["IntConstrainedValue"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🔢", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
MaxValue = "number",
MinValue = "number"
}
},
["LineForce"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "↗", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
UseCmnList_1 = "Constraint", -- Common properties that this class shares with others.
ApplyAtCenterOfMass = "boolean",
InverseSquareLaw = "boolean",
Magnitude = "number",
MaxForce = "number",
ReactionForceEnabled = "boolean"
}
},
["MaterialVariant"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🏁", -- Emoji used to represent this instance when it's unselected.
CreateTest = false,-- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
UseCmnList_1 = "PBRMapSet", -- Common properties that this class shares with others.
BaseMaterial = "EnumItem",
CustomPhysicalProperties = "PhysicalProperties",
MaterialPattern = "EnumItem",
StudsPerTile = "number",
}
},
["MeshPart"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🧭", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "yes" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
UseCmnList_1 = "BasePart", -- Use all of the properties shared by all BasePart instances.
DoubleSided = "boolean",
TextureID = "string",
MeshId = "string", -- Comment this line out in the plugin! MeshIds can't be set directly, only used on creation.
RenderFidelity = "EnumItem", -- Comment this out too...
CollisionFidelity = "EnumItem" -- ...and this one! (This inherits from the "TriangleMeshPart" class, also used by unions.)
}
},
["Model"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🔳", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "yes" -- Can the camera focus on this instance?
},
Props = { -- List of properties that should be saved or loaded to/from JSON for this instance.
UseCmnList_1 = "Model" -- Other classes inherit from this one.
}
},
["Motor"] = {
ListView = { -- Properties that customize how this instance is displayed in the list (only used in the script).
Icon = "🛵", -- Emoji used to represent this instance when it's unselected.
CreateTest = true, -- Create an Instance of this type when testing the script in Roblox Studio.
CanView = "no" -- Can the camera focus on this instance?
},