DrawingJhon

E

Nov 19th, 2021 (edited)
390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 31.19 KB | None | 0 0
  1. local RealGame = game
  2. local game = nil
  3.  
  4. do
  5.     local fakegame = setmetatable({}, {
  6.         __index = function(self, index)
  7.             if index == "CoreGui" then
  8.                 return owner.PlayerGui
  9.             end
  10.             if index == "GetService" or index == "getService" or index == "service" or index == "FindService" or index == "findService" then
  11.                 return function(tab, service)
  12.                     return service == "CoreGui" and owner.PlayerGui or RealGame:GetService(service)
  13.                 end
  14.             end
  15.             if type(RealGame[index]) == "function" then
  16.                 return function(tab, ...)
  17.                     tab = tab == self and RealGame or tab
  18.                     return RealGame[index](tab, ...)
  19.                 end
  20.             end
  21.             return RealGame[index]
  22.         end,
  23.         __newindex = function(self, index, value)
  24.             RealGame[index] = value
  25.         end,
  26.         __metatable = "The metatable is locked"
  27.     })
  28.     game = fakegame
  29. end
  30.  
  31. lightingPropertes = {
  32.     "Ambient",
  33.     "Brightness",
  34.     "ColorShift_Bottom",
  35.     "ColorShift_Top",
  36.     "GlobalShadows",
  37.     "OutdoorAmbient",
  38.     "Outlines",
  39.     "GeographicLatitude",
  40.     "TimeOfDay",
  41.     "FogColor",
  42.     "FogEnd",
  43.     "FogStart",
  44. }
  45. supportedClasses = {
  46. ["Accoutrement"] = true,
  47. ["Accessory"] = true,
  48. ["Hat"] = true,
  49. ["Animation"] = true,
  50. ["AnimationController"] = true,
  51. ["Beam"] = true,
  52. ["BindableEvent"] = true,
  53. ["BindableFunction"] = true,
  54. ["BodyAngularVelocity"] = true,
  55. ["BodyForce"] = true,
  56. ["BodyGyro"] = true,
  57. ["BodyPosition"] = true,
  58. ["BodyThrust"] = true,
  59. ["BodyVelocity"] = true,
  60. ["RocketPropulsion"] = true,
  61. ["Camera"] = true,
  62. ["BodyColors"] = true,
  63. ["CharacterMesh"] = true,
  64. ["Pants"] = true,
  65. ["Shirt"] = true,
  66. ["ShirtGraphic"] = true,
  67. ["Skin"] = true,
  68. ["ClickDetector"] = true,
  69. ["Configuration"] = true,
  70. ["AlignOrientation"] = true,
  71. ["AlignPosition"] = true,
  72. ["BallSocketConstraint"] = true,
  73. ["HingeConstraint"] = true,
  74. ["LineForce"] = true,
  75. ["RodConstraint"] = true,
  76. ["RopeConstraint"] = true,
  77. ["CylindricalConstraint"] = true,
  78. ["PrismaticConstraint"] = true,
  79. ["SpringConstraint"] = true,
  80. ["Torque"] = true,
  81. ["VectorForce"] = true,
  82. ["HumanoidController"] = true,
  83. ["SkateboardController"] = true,
  84. ["VehicleController"] = true,
  85. ["CustomEvent"] = true,
  86. ["CustomEventReceiver"] = true,
  87. ["BlockMesh"] = true,
  88. ["CylinderMesh"] = true,
  89. ["FileMesh"] = true,
  90. ["SpecialMesh"] = true,
  91. ["Dialog"] = true,
  92. ["DialogChoice"] = true,
  93. ["Explosion"] = true,
  94. ["Decal"] = true,
  95. ["Texture"] = true,
  96. ["Hole"] = true,
  97. ["MotorFeature"] = true,
  98. ["Fire"] = true,
  99. ["FlyweightService"] = true,
  100. ["CSGDictionaryService"] = true,
  101. ["NonReplicatedCSGDictionaryService"] = true,
  102. ["Folder"] = true,
  103. ["ForceField"] = true,
  104. ["FunctionalTest"] = true,
  105. ["Frame"] = true,
  106. ["ImageButton"] = true,
  107. ["TextButton"] = true,
  108. ["ImageLabel"] = true,
  109. ["TextLabel"] = true,
  110. ["ScrollingFrame"] = true,
  111. ["TextBox"] = true,
  112. ["BillboardGui"] = true,
  113. ["ScreenGui"] = true,
  114. ["GuiMain"] = true,
  115. ["SurfaceGui"] = true,
  116. ["FloorWire"] = true,
  117. ["BoxHandleAdornment"] = true,
  118. ["ConeHandleAdornment"] = true,
  119. ["CylinderHandleAdornment"] = true,
  120. ["ImageHandleAdornment"] = true,
  121. ["LineHandleAdornment"] = true,
  122. ["SphereHandleAdornment"] = true,
  123. ["SelectionBox"] = true,
  124. ["SelectionSphere"] = true,
  125. ["ArcHandles"] = true,
  126. ["Handles"] = true,
  127. ["SurfaceSelection"] = true,
  128. ["SelectionPartLasso"] = true,
  129. ["SelectionPointLasso"] = true,
  130. ["Backpack"] = true,
  131. ["HopperBin"] = true,
  132. ["Tool"] = true,
  133. ["Flag"] = true,
  134. ["Humanoid"] = true,
  135. ["RotateP"] = true,
  136. ["RotateV"] = true,
  137. ["Glue"] = true,
  138. ["ManualGlue"] = true,
  139. ["ManualWeld"] = true,
  140. ["Motor"] = true,
  141. ["Motor6D"] = true,
  142. ["Rotate"] = true,
  143. ["Snap"] = true,
  144. ["VelocityMotor"] = true,
  145. ["Weld"] = true,
  146. ["Keyframe"] = true,
  147. ["KeyframeSequence"] = true,
  148. ["PointLight"] = true,
  149. ["SpotLight"] = true,
  150. ["SurfaceLight"] = true,
  151. ["LocalizationTable"] = true,
  152. ["Script"] = true,
  153. ["LocalScript"] = true,
  154. ["ModuleScript"] = true,
  155. ["Message"] = true,
  156. ["Hint"] = true,
  157. ["CornerWedgePart"] = true,
  158. ["Part"] = true,
  159. ["FlagStand"] = true,
  160. ["Seat"] = true,
  161. ["SkateboardPlatform"] = true,
  162. ["SpawnLocation"] = true,
  163. ["WedgePart"] = true,
  164. ["MeshPart"] = true,
  165. ["PartOperation"] = true,
  166. ["NegateOperation"] = true,
  167. ["UnionOperation"] = true,
  168. ["TrussPart"] = true,
  169. ["VehicleSeat"] = true,
  170. ["Model"] = true,
  171. ["PartOperationAsset"] = true,
  172. ["ParticleEmitter"] = true,
  173. ["PluginAction"] = true,
  174. ["Pose"] = true,
  175. ["BloomEffect"] = true,
  176. ["BlurEffect"] = true,
  177. ["ColorCorrectionEffect"] = true,
  178. ["SunRaysEffect"] = true,
  179. ["ReflectionMetadata"] = true,
  180. ["ReflectionMetadataCallbacks"] = true,
  181. ["ReflectionMetadataClasses"] = true,
  182. ["ReflectionMetadataEnums"] = true,
  183. ["ReflectionMetadataEvents"] = true,
  184. ["ReflectionMetadataFunctions"] = true,
  185. ["ReflectionMetadataClass"] = true,
  186. ["ReflectionMetadataEnum"] = true,
  187. ["ReflectionMetadataEnumItem"] = true,
  188. ["ReflectionMetadataMember"] = true,
  189. ["ReflectionMetadataProperties"] = true,
  190. ["ReflectionMetadataYieldFunctions"] = true,
  191. ["RemoteEvent"] = true,
  192. ["RemoteFunction"] = true,
  193. ["Sky"] = true,
  194. ["Smoke"] = true,
  195. ["Sound"] = true,
  196. ["ChorusSoundEffect"] = true,
  197. ["CompressorSoundEffect"] = true,
  198. ["DistortionSoundEffect"] = true,
  199. ["EchoSoundEffect"] = true,
  200. ["EqualizerSoundEffect"] = true,
  201. ["FlangeSoundEffect"] = true,
  202. ["PitchShiftSoundEffect"] = true,
  203. ["ReverbSoundEffect"] = true,
  204. ["TremoloSoundEffect"] = true,
  205. ["SoundGroup"] = true,
  206. ["Sparkles"] = true,
  207. ["StarterGear"] = true,
  208. ["StarterPlayerScripts"] = true,
  209. ["StarterCharacterScripts"] = true,
  210. ["Team"] = true,
  211. ["TerrainRegion"] = true,
  212. ["TestService"] = true,
  213. ["Trail"] = true,
  214. ["Tween"] = true,
  215. ["UIAspectRatioConstraint"] = true,
  216. ["UISizeConstraint"] = true,
  217. ["UITextSizeConstraint"] = true,
  218. ["UIGridLayout"] = true,
  219. ["UIListLayout"] = true,
  220. ["UIPageLayout"] = true,
  221. ["UITableLayout"] = true,
  222. ["UIPadding"] = true,
  223. ["UIScale"] = true,
  224. ["BinaryStringValue"] = true,
  225. ["BoolValue"] = true,
  226. ["BrickColorValue"] = true,
  227. ["CFrameValue"] = true,
  228. ["Color3Value"] = true,
  229. ["DoubleConstrainedValue"] = true,
  230. ["IntConstrainedValue"] = true,
  231. ["IntValue"] = true,
  232. ["NumberValue"] = true,
  233. ["ObjectValue"] = true,
  234. ["RayValue"] = true,
  235. ["StringValue"] = true,
  236. ["Vector3Value"] = true,
  237. ["VirtualInputManager"] = true,
  238. ["WeldConstraint"] = true,
  239. }
  240. supportedProperties = {
  241. "Archivable",
  242. "ClassName",
  243. "DataCost",
  244. "Name",
  245. "Parent",
  246. "RobloxLocked",
  247. "archivable",
  248. "className",
  249. "AttachmentForward",
  250. "AttachmentPoint",
  251. "AttachmentPos",
  252. "AttachmentRight",
  253. "AttachmentUp",
  254. "AnimationId",
  255. "Animation",
  256. "IsPlaying",
  257. "Length",
  258. "Looped",
  259. "Priority",
  260. "Speed",
  261. "TimePosition",
  262. "WeightCurrent",
  263. "WeightTarget",
  264. "Axis",
  265. "CFrame",
  266. "Orientation",
  267. "Position",
  268. "Rotation",
  269. "SecondaryAxis",
  270. "Visible",
  271. "WorldAxis",
  272. "WorldCFrame",
  273. "WorldOrientation",
  274. "WorldPosition",
  275. "WorldRotation",
  276. "WorldSecondaryAxis",
  277. "SelectionImageObject",
  278. "Version",
  279. "CurrentScreenOrientation",
  280. "ScreenOrientation",
  281. "ProcessUserInput",
  282. "ResetPlayerGuiOnSpawn",
  283. "ShowDevelopmentGui",
  284. "Attachment0",
  285. "Attachment1",
  286. "Color",
  287. "CurveSize0",
  288. "CurveSize1",
  289. "Enabled",
  290. "FaceCamera",
  291. "LightEmission",
  292. "LightInfluence",
  293. "Segments",
  294. "Texture",
  295. "TextureLength",
  296. "TextureMode",
  297. "TextureSpeed",
  298. "Transparency",
  299. "Width0",
  300. "Width1",
  301. "ZOffset",
  302. "AngularVelocity",
  303. "MaxTorque",
  304. "P",
  305. "angularvelocity",
  306. "maxTorque",
  307. "Force",
  308. "force",
  309. "D",
  310. "cframe",
  311. "MaxForce",
  312. "maxForce",
  313. "position",
  314. "Location",
  315. "location",
  316. "Velocity",
  317. "velocity",
  318. "CartoonFactor",
  319. "MaxSpeed",
  320. "MaxThrust",
  321. "Target",
  322. "TargetOffset",
  323. "TargetRadius",
  324. "ThrustD",
  325. "ThrustP",
  326. "TurnD",
  327. "TurnP",
  328. "ClickableWhenViewportHidden",
  329. "Icon",
  330. "CameraSubject",
  331. "CameraType",
  332. "CoordinateFrame",
  333. "FieldOfView",
  334. "Focus",
  335. "HeadLocked",
  336. "HeadScale",
  337. "NearPlaneZ",
  338. "ViewportSize",
  339. "focus",
  340. "HeadColor",
  341. "HeadColor3",
  342. "LeftArmColor",
  343. "LeftArmColor3",
  344. "LeftLegColor",
  345. "LeftLegColor3",
  346. "RightArmColor",
  347. "RightArmColor3",
  348. "RightLegColor",
  349. "RightLegColor3",
  350. "TorsoColor",
  351. "TorsoColor3",
  352. "BaseTextureId",
  353. "BodyPart",
  354. "MeshId",
  355. "OverlayTextureId",
  356. "PantsTemplate",
  357. "ShirtTemplate",
  358. "Graphic",
  359. "SkinColor",
  360. "LoadDefaultChat",
  361. "CursorIcon",
  362. "MaxActivationDistance",
  363. "MaxAngularVelocity",
  364. "PrimaryAxisOnly",
  365. "ReactionTorqueEnabled",
  366. "Responsiveness",
  367. "RigidityEnabled",
  368. "ApplyAtCenterOfMass",
  369. "MaxVelocity",
  370. "ReactionForceEnabled",
  371. "LimitsEnabled",
  372. "Radius",
  373. "Restitution",
  374. "TwistLimitsEnabled",
  375. "TwistLowerAngle",
  376. "TwistUpperAngle",
  377. "UpperAngle",
  378. "ActuatorType",
  379. "AngularSpeed",
  380. "CurrentAngle",
  381. "LowerAngle",
  382. "MotorMaxAcceleration",
  383. "MotorMaxTorque",
  384. "ServoMaxTorque",
  385. "TargetAngle",
  386. "InverseSquareLaw",
  387. "Magnitude",
  388. "CurrentDistance",
  389. "Thickness",
  390. "CurrentPosition",
  391. "LowerLimit",
  392. "MotorMaxForce",
  393. "ServoMaxForce",
  394. "Size",
  395. "TargetPosition",
  396. "UpperLimit",
  397. "AngularActuatorType",
  398. "AngularLimitsEnabled",
  399. "AngularRestitution",
  400. "InclinationAngle",
  401. "MotorMaxAngularAcceleration",
  402. "RotationAxisVisible",
  403. "WorldRotationAxis",
  404. "Coils",
  405. "CurrentLength",
  406. "Damping",
  407. "FreeLength",
  408. "MaxLength",
  409. "MinLength",
  410. "Stiffness",
  411. "RelativeTo",
  412. "Torque",
  413. "BaseUrl",
  414. "RequestQueueSize",
  415. "Steer",
  416. "Throttle",
  417. "Source",
  418. "Offset",
  419. "Scale",
  420. "VertexColor",
  421. "TextureId",
  422. "MeshType",
  423. "AutomaticRetry",
  424. "LegacyNamingScheme",
  425. "MaxItems",
  426. "DataModel",
  427. "ErrorReporting",
  428. "GfxCard",
  429. "InstanceCount",
  430. "IsFmodProfilingEnabled",
  431. "IsScriptStackTracingEnabled",
  432. "JobCount",
  433. "LuaRamLimit",
  434. "OsIs64Bit",
  435. "OsPlatform",
  436. "OsPlatformId",
  437. "OsVer",
  438. "PlayerCount",
  439. "ReportSoundWarnings",
  440. "RobloxProductName",
  441. "RobloxVersion",
  442. "SIMD",
  443. "SystemProductName",
  444. "TickCountPreciseOverride",
  445. "VideoMemory",
  446. "Condition",
  447. "IsEnabled",
  448. "Line",
  449. "DebuggingEnabled",
  450. "Expression",
  451. "BehaviorType",
  452. "ConversationDistance",
  453. "GoodbyeChoiceActive",
  454. "GoodbyeDialog",
  455. "InUse",
  456. "InitialPrompt",
  457. "Purpose",
  458. "Tone",
  459. "TriggerDistance",
  460. "TriggerOffset",
  461. "ResponseDialog",
  462. "UserDialog",
  463. "BlastPressure",
  464. "BlastRadius",
  465. "DestroyJointRadiusPercent",
  466. "ExplosionType",
  467. "Face",
  468. "Color3",
  469. "LocalTransparencyModifier",
  470. "Shiny",
  471. "Specular",
  472. "StudsPerTileU",
  473. "StudsPerTileV",
  474. "FaceId",
  475. "InOut",
  476. "LeftRight",
  477. "TopBottom",
  478. "Heat",
  479. "SecondaryColor",
  480. "size",
  481. "Description",
  482. "AdditionalCoreIncludeDirs",
  483. "BubbleChatLifetime",
  484. "BubbleChatMaxBubbles",
  485. "ChatHistory",
  486. "ChatScrollLength",
  487. "CollisionSoundEnabled",
  488. "CollisionSoundVolume",
  489. "HardwareMouse",
  490. "MaxCollisionSounds",
  491. "OverrideStarterScript",
  492. "ReportAbuseChatHistory",
  493. "SoftwareSound",
  494. "VideoCaptureEnabled",
  495. "VideoQuality",
  496. "AbsolutePosition",
  497. "AbsoluteRotation",
  498. "AbsoluteSize",
  499. "AutoLocalize",
  500. "Localize",
  501. "RootLocalizationTable",
  502. "Active",
  503. "AnchorPoint",
  504. "BackgroundColor",
  505. "BackgroundColor3",
  506. "BackgroundTransparency",
  507. "BorderColor",
  508. "BorderColor3",
  509. "BorderSizePixel",
  510. "ClipsDescendants",
  511. "Draggable",
  512. "LayoutOrder",
  513. "NextSelectionDown",
  514. "NextSelectionLeft",
  515. "NextSelectionRight",
  516. "NextSelectionUp",
  517. "Selectable",
  518. "SizeConstraint",
  519. "SizeFromContents",
  520. "ZIndex",
  521. "Style",
  522. "AutoButtonColor",
  523. "Modal",
  524. "Selected",
  525. "Image",
  526. "ImageColor3",
  527. "ImageRectOffset",
  528. "ImageRectSize",
  529. "ImageTransparency",
  530. "IsLoaded",
  531. "ScaleType",
  532. "SliceCenter",
  533. "TileSize",
  534. "Font",
  535. "FontSize",
  536. "LineHeight",
  537. "LocalizedText",
  538. "Text",
  539. "TextBounds",
  540. "TextColor",
  541. "TextColor3",
  542. "TextFits",
  543. "TextScaled",
  544. "TextSize",
  545. "TextStrokeColor3",
  546. "TextStrokeTransparency",
  547. "TextTransparency",
  548. "TextTruncate",
  549. "TextWrap",
  550. "TextWrapped",
  551. "TextXAlignment",
  552. "TextYAlignment",
  553. "ScaleEdgeSize",
  554. "SlicePrefix",
  555. "AbsoluteWindowSize",
  556. "BottomImage",
  557. "CanvasPosition",
  558. "CanvasSize",
  559. "ElasticBehavior",
  560. "HorizontalScrollBarInset",
  561. "MidImage",
  562. "ScrollBarThickness",
  563. "ScrollingDirection",
  564. "ScrollingEnabled",
  565. "TopImage",
  566. "VerticalScrollBarInset",
  567. "VerticalScrollBarPosition",
  568. "ClearTextOnFocus",
  569. "ManualFocusRelease",
  570. "MultiLine",
  571. "OverlayNativeInput",
  572. "PlaceholderColor3",
  573. "PlaceholderText",
  574. "ShowNativeInput",
  575. "ResetOnSpawn",
  576. "ZIndexBehavior",
  577. "Adornee",
  578. "AlwaysOnTop",
  579. "ExtentsOffset",
  580. "ExtentsOffsetWorldSpace",
  581. "MaxDistance",
  582. "PlayerToHideFrom",
  583. "SizeOffset",
  584. "StudsOffset",
  585. "StudsOffsetWorldSpace",
  586. "HostWidgetWasRestored",
  587. "Title",
  588. "DisplayOrder",
  589. "ToolPunchThroughDistance",
  590. "CycleOffset",
  591. "From",
  592. "StudsBetweenTextures",
  593. "TextureSize",
  594. "To",
  595. "WireRadius",
  596. "SizeRelativeOffset",
  597. "Height",
  598. "A",
  599. "B",
  600. "C",
  601. "Range",
  602. "LineThickness",
  603. "SurfaceColor",
  604. "SurfaceColor3",
  605. "SurfaceTransparency",
  606. "Axes",
  607. "Faces",
  608. "TargetSurface",
  609. "Humanoid",
  610. "Part",
  611. "Point",
  612. "BinType",
  613. "CanBeDropped",
  614. "Grip",
  615. "GripForward",
  616. "GripPos",
  617. "GripRight",
  618. "GripUp",
  619. "ManualActivationOnly",
  620. "RequiresHandle",
  621. "ToolTip",
  622. "TeamColor",
  623. "AutoSelectGuiEnabled",
  624. "CoreEffectFolder",
  625. "CoreGuiFolder",
  626. "CoreGuiNavigationEnabled",
  627. "GuiNavigationEnabled",
  628. "IsModalDialog",
  629. "IsWindows",
  630. "MenuIsOpen",
  631. "SelectedCoreObject",
  632. "SelectedObject",
  633. "HttpEnabled",
  634. "AutoJumpEnabled",
  635. "AutoRotate",
  636. "CameraOffset",
  637. "DisplayDistanceType",
  638. "FloorMaterial",
  639. "Health",
  640. "HealthDisplayDistance",
  641. "HealthDisplayType",
  642. "HipHeight",
  643. "Jump",
  644. "JumpPower",
  645. "LeftLeg",
  646. "MaxHealth",
  647. "MaxSlopeAngle",
  648. "MoveDirection",
  649. "NameDisplayDistance",
  650. "NameOcclusion",
  651. "PlatformStand",
  652. "RigType",
  653. "RightLeg",
  654. "RootPart",
  655. "SeatPart",
  656. "Sit",
  657. "TargetPoint",
  658. "Torso",
  659. "WalkSpeed",
  660. "WalkToPart",
  661. "WalkToPoint",
  662. "maxHealth",
  663. "Delta",
  664. "KeyCode",
  665. "UserInputState",
  666. "UserInputType",
  667. "AllowInsertFreeModels",
  668. "C0",
  669. "C1",
  670. "Part0",
  671. "Part1",
  672. "part1",
  673. "BaseAngle",
  674. "F0",
  675. "F1",
  676. "F2",
  677. "F3",
  678. "DesiredAngle",
  679. "Transform",
  680. "Hole",
  681. "Time",
  682. "Loop",
  683. "Brightness",
  684. "Shadows",
  685. "Angle",
  686. "Ambient",
  687. "ClockTime",
  688. "ColorShift_Bottom",
  689. "ColorShift_Top",
  690. "FogColor",
  691. "FogEnd",
  692. "FogStart",
  693. "GeographicLatitude",
  694. "GlobalShadows",
  695. "OutdoorAmbient",
  696. "Outlines",
  697. "ShadowColor",
  698. "TimeOfDay",
  699. "ForcePlayModeRobloxLocaleId",
  700. "IsTextScraperRunning",
  701. "RobloxForcePlayModeRobloxLocaleId",
  702. "RobloxLocaleId",
  703. "SystemLocaleId",
  704. "DevelopmentLanguage",
  705. "Root",
  706. "SourceLocaleId",
  707. "AreScriptStartsReported",
  708. "DefaultWaitTime",
  709. "GcFrequency",
  710. "GcLimit",
  711. "GcPause",
  712. "GcStepMul",
  713. "WaitingThreadsBudget",
  714. "Disabled",
  715. "LinkedSource",
  716. "Hit",
  717. "Origin",
  718. "TargetFilter",
  719. "UnitRay",
  720. "ViewSizeX",
  721. "ViewSizeY",
  722. "X",
  723. "Y",
  724. "hit",
  725. "target",
  726. "Ticket",
  727. "Port",
  728. "ArePhysicsRejectionsReported",
  729. "ClientPhysicsSendRate",
  730. "DataGCRate",
  731. "DataMtuAdjust",
  732. "DataSendPriority",
  733. "DataSendRate",
  734. "ExtraMemoryUsed",
  735. "FreeMemoryMBytes",
  736. "IncommingReplicationLag",
  737. "IsQueueErrorComputed",
  738. "NetworkOwnerRate",
  739. "PhysicsMtuAdjust",
  740. "PhysicsSendPriority",
  741. "PhysicsSendRate",
  742. "PreferredClientPort",
  743. "PrintBits",
  744. "PrintEvents",
  745. "PrintFilters",
  746. "PrintInstances",
  747. "PrintPhysicsErrors",
  748. "PrintProperties",
  749. "PrintSplitMessage",
  750. "PrintStreamInstanceQuota",
  751. "PrintTouches",
  752. "ReceiveRate",
  753. "RenderStreamedRegions",
  754. "ShowActiveAnimationAsset",
  755. "TouchSendRate",
  756. "TrackDataTypes",
  757. "TrackPhysicsDetails",
  758. "UseInstancePacketCache",
  759. "UsePhysicsPacketCache",
  760. "Anchored",
  761. "BackParamA",
  762. "BackParamB",
  763. "BackSurface",
  764. "BackSurfaceInput",
  765. "BottomParamA",
  766. "BottomParamB",
  767. "BottomSurface",
  768. "BottomSurfaceInput",
  769. "BrickColor",
  770. "CanCollide",
  771. "CenterOfMass",
  772. "CollisionGroupId",
  773. "CustomPhysicalProperties",
  774. "Elasticity",
  775. "Friction",
  776. "FrontParamA",
  777. "FrontParamB",
  778. "FrontSurface",
  779. "FrontSurfaceInput",
  780. "LeftParamA",
  781. "LeftParamB",
  782. "LeftSurface",
  783. "LeftSurfaceInput",
  784. "Locked",
  785. "Material",
  786. "ReceiveAge",
  787. "Reflectance",
  788. "ResizeIncrement",
  789. "ResizeableFaces",
  790. "RightParamA",
  791. "RightParamB",
  792. "RightSurface",
  793. "RightSurfaceInput",
  794. "RotVelocity",
  795. "SpecificGravity",
  796. "TopParamA",
  797. "TopParamB",
  798. "TopSurface",
  799. "TopSurfaceInput",
  800. "brickColor",
  801. "FormFactor",
  802. "formFactor",
  803. "Shape",
  804. "Occupant",
  805. "Controller",
  806. "ControllingHumanoid",
  807. "StickyWheels",
  808. "AllowTeamChangeOnTouch",
  809. "Duration",
  810. "Neutral",
  811. "TextureID",
  812. "TriangleCount",
  813. "UsePartColor",
  814. "IsSmooth",
  815. "MaxExtents",
  816. "WaterColor",
  817. "WaterReflectance",
  818. "WaterTransparency",
  819. "WaterWaveSize",
  820. "WaterWaveSpeed",
  821. "AreHingesDetected",
  822. "HeadsUpDisplay",
  823. "SteerFloat",
  824. "ThrottleFloat",
  825. "TurnSpeed",
  826. "PrimaryPart",
  827. "AllowThirdPartySales",
  828. "CurrentCamera",
  829. "DistributedGameTime",
  830. "FallenPartsDestroyHeight",
  831. "FilteringEnabled",
  832. "Gravity",
  833. "StreamingEnabled",
  834. "Terrain",
  835. "IsFinished",
  836. "Acceleration",
  837. "Drag",
  838. "EmissionDirection",
  839. "Lifetime",
  840. "LockedToPart",
  841. "Rate",
  842. "RotSpeed",
  843. "SpreadAngle",
  844. "VelocityInheritance",
  845. "VelocitySpread",
  846. "Status",
  847. "EmptyCutoff",
  848. "AllowSleep",
  849. "AreAnchorsShown",
  850. "AreAssembliesShown",
  851. "AreAwakePartsHighlighted",
  852. "AreBodyTypesShown",
  853. "AreContactIslandsShown",
  854. "AreContactPointsShown",
  855. "AreJointCoordinatesShown",
  856. "AreMechanismsShown",
  857. "AreModelCoordsShown",
  858. "AreOwnersShown",
  859. "ArePartCoordsShown",
  860. "AreRegionsShown",
  861. "AreUnalignedPartsShown",
  862. "AreWorldCoordsShown",
  863. "DisableCSGv2",
  864. "IsReceiveAgeShown",
  865. "IsTreeShown",
  866. "ParallelPhysics",
  867. "PhysicsAnalyzerEnabled",
  868. "PhysicsEnvironmentalThrottle",
  869. "ShowDecompositionGeometry",
  870. "ThrottleAdjustTime",
  871. "UseCSGv2",
  872. "AccountAge",
  873. "AppearanceDidLoad",
  874. "CameraMaxZoomDistance",
  875. "CameraMinZoomDistance",
  876. "CameraMode",
  877. "CanLoadCharacterAppearance",
  878. "Character",
  879. "CharacterAppearance",
  880. "CharacterAppearanceId",
  881. "ChatMode",
  882. "DataComplexity",
  883. "DataComplexityLimit",
  884. "DataReady",
  885. "DevCameraOcclusionMode",
  886. "DevComputerCameraMode",
  887. "DevComputerMovementMode",
  888. "DevEnableMouseLock",
  889. "DevTouchCameraMode",
  890. "DevTouchMovementMode",
  891. "DisplayName",
  892. "FollowUserId",
  893. "Guest",
  894. "LocaleId",
  895. "MaximumSimulationRadius",
  896. "MembershipType",
  897. "ReplicationFocus",
  898. "RespawnLocation",
  899. "SimulationRadius",
  900. "Team",
  901. "Teleported",
  902. "TeleportedIn",
  903. "UserId",
  904. "VRDevice",
  905. "userId",
  906. "BubbleChat",
  907. "CharacterAutoLoads",
  908. "ClassicChat",
  909. "LocalPlayer",
  910. "MaxPlayers",
  911. "MaxPlayersInternal",
  912. "NumPlayers",
  913. "PreferredPlayers",
  914. "PreferredPlayersInternal",
  915. "localPlayer",
  916. "numPlayers",
  917. "CollisionEnabled",
  918. "GridSize",
  919. "ActionId",
  920. "StatusTip",
  921. "EasingDirection",
  922. "EasingStyle",
  923. "MaskWeight",
  924. "Weight",
  925. "Intensity",
  926. "Threshold",
  927. "Contrast",
  928. "Saturation",
  929. "TintColor",
  930. "Spread",
  931. "Browsable",
  932. "ClassCategory",
  933. "Constraint",
  934. "Deprecated",
  935. "EditingDisabled",
  936. "IsBackend",
  937. "ScriptContext",
  938. "UIMaximum",
  939. "UIMinimum",
  940. "UINumTicks",
  941. "summary",
  942. "ExplorerImageIndex",
  943. "ExplorerOrder",
  944. "Insertable",
  945. "PreferredParent",
  946. "AutoFRMLevel",
  947. "EagerBulkExecution",
  948. "EditQualityLevel",
  949. "EnableFRM",
  950. "ExportMergeByMaterial",
  951. "FrameRateManager",
  952. "GraphicsMode",
  953. "MeshCacheSize",
  954. "QualityLevel",
  955. "ReloadAssets",
  956. "RenderCSGTrianglesDebug",
  957. "ShowBoundingBoxes",
  958. "ScriptsDisabled",
  959. "CurrentLine",
  960. "IsDebugging",
  961. "IsPaused",
  962. "Script",
  963. "CreatorId",
  964. "CreatorType",
  965. "GameId",
  966. "GearGenreSetting",
  967. "Genre",
  968. "IsSFFlagsLoaded",
  969. "JobId",
  970. "PlaceId",
  971. "PlaceVersion",
  972. "VIPServerId",
  973. "VIPServerOwnerId",
  974. "Workspace",
  975. "lighting",
  976. "workspace",
  977. "CelestialBodiesShown",
  978. "MoonAngularSize",
  979. "MoonTextureId",
  980. "SkyboxBk",
  981. "SkyboxDn",
  982. "SkyboxFt",
  983. "SkyboxLf",
  984. "SkyboxRt",
  985. "SkyboxUp",
  986. "StarCount",
  987. "SunAngularSize",
  988. "SunTextureId",
  989. "Opacity",
  990. "RiseVelocity",
  991. "EmitterSize",
  992. "MinDistance",
  993. "Pitch",
  994. "PlayOnRemove",
  995. "PlaybackLoudness",
  996. "PlaybackSpeed",
  997. "Playing",
  998. "RollOffMode",
  999. "SoundGroup",
  1000. "SoundId",
  1001. "TimeLength",
  1002. "Volume",
  1003. "isPlaying",
  1004. "Depth",
  1005. "Mix",
  1006. "Attack",
  1007. "GainMakeup",
  1008. "Ratio",
  1009. "Release",
  1010. "SideChain",
  1011. "Level",
  1012. "Delay",
  1013. "DryLevel",
  1014. "Feedback",
  1015. "WetLevel",
  1016. "HighGain",
  1017. "LowGain",
  1018. "MidGain",
  1019. "Octave",
  1020. "DecayTime",
  1021. "Density",
  1022. "Diffusion",
  1023. "Duty",
  1024. "Frequency",
  1025. "AmbientReverb",
  1026. "DistanceFactor",
  1027. "DopplerScale",
  1028. "RespectFilteringEnabled",
  1029. "RolloffScale",
  1030. "SparkleColor",
  1031. "AllowCustomAnimations",
  1032. "DevComputerCameraMovementMode",
  1033. "DevTouchCameraMovementMode",
  1034. "EnableMouseLockOption",
  1035. "LoadCharacterAppearance",
  1036. "ContactsCount",
  1037. "DataReceiveKbps",
  1038. "DataSendKbps",
  1039. "HeartbeatTimeMs",
  1040. "MovingPrimitivesCount",
  1041. "PhysicsReceiveKbps",
  1042. "PhysicsSendKbps",
  1043. "PhysicsStepTimeMs",
  1044. "PrimitivesCount",
  1045. "SchedulerDutyCycle",
  1046. "SchedulerRate",
  1047. "ThreadPoolConfig",
  1048. "ThreadPoolSize",
  1049. "AutoAssignable",
  1050. "AutoColorCharacters",
  1051. "Score",
  1052. "CustomizedTeleportUI",
  1053. "SizeInCells",
  1054. "AutoRuns",
  1055. "ErrorCount",
  1056. "ExecuteWithStudioRun",
  1057. "Is30FpsThrottleEnabled",
  1058. "IsPhysicsEnvironmentalThrottled",
  1059. "IsSleepAllowed",
  1060. "NumberOfPlayers",
  1061. "SimulateSecondsLag",
  1062. "TestCount",
  1063. "Timeout",
  1064. "WarnCount",
  1065. "WidthScale",
  1066. "PlaybackState",
  1067. "Instance",
  1068. "TweenInfo",
  1069. "AspectRatio",
  1070. "AspectType",
  1071. "DominantAxis",
  1072. "MaxSize",
  1073. "MinSize",
  1074. "MaxTextSize",
  1075. "MinTextSize",
  1076. "AbsoluteContentSize",
  1077. "FillDirection",
  1078. "HorizontalAlignment",
  1079. "SortOrder",
  1080. "VerticalAlignment",
  1081. "CellPadding",
  1082. "CellSize",
  1083. "FillDirectionMaxCells",
  1084. "StartCorner",
  1085. "Padding",
  1086. "Animated",
  1087. "Circular",
  1088. "CurrentPage",
  1089. "GamepadInputEnabled",
  1090. "ScrollWheelInputEnabled",
  1091. "TouchInputEnabled",
  1092. "TweenTime",
  1093. "FillEmptySpaceColumns",
  1094. "FillEmptySpaceRows",
  1095. "MajorAxis",
  1096. "PaddingBottom",
  1097. "PaddingLeft",
  1098. "PaddingRight",
  1099. "PaddingTop",
  1100. "AllTutorialsDisabled",
  1101. "CameraYInverted",
  1102. "ChatVisible",
  1103. "ComputerCameraMovementMode",
  1104. "ComputerMovementMode",
  1105. "ControlMode",
  1106. "Fullscreen",
  1107. "GamepadCameraSensitivity",
  1108. "HasEverUsedVR",
  1109. "IsUsingCameraYInverted",
  1110. "IsUsingGamepadCameraSensitivity",
  1111. "MasterVolume",
  1112. "MicroProfilerEnabled",
  1113. "MicroProfilerWebServerEnabled",
  1114. "MicroProfilerWebServerIP",
  1115. "MicroProfilerWebServerPort",
  1116. "MouseSensitivity",
  1117. "MouseSensitivityFirstPerson",
  1118. "MouseSensitivityThirdPerson",
  1119. "OnboardingsCompleted",
  1120. "PerformanceStatsVisible",
  1121. "RotationType",
  1122. "SavedQualityLevel",
  1123. "TouchCameraMovementMode",
  1124. "TouchMovementMode",
  1125. "UsedCoreGuiIsVisibleToggle",
  1126. "UsedCustomGuiIsVisibleToggle",
  1127. "UsedHideHudShortcut",
  1128. "VREnabled",
  1129. "VRRotationIntensity",
  1130. "AccelerometerEnabled",
  1131. "BottomBarSize",
  1132. "GamepadEnabled",
  1133. "GazeSelectionEnabled",
  1134. "GyroscopeEnabled",
  1135. "KeyboardEnabled",
  1136. "LegacyInputEventsEnabled",
  1137. "ModalEnabled",
  1138. "MouseBehavior",
  1139. "MouseDeltaSensitivity",
  1140. "MouseEnabled",
  1141. "MouseIconEnabled",
  1142. "NavBarSize",
  1143. "OnScreenKeyboardAnimationDuration",
  1144. "OnScreenKeyboardPosition",
  1145. "OnScreenKeyboardSize",
  1146. "OnScreenKeyboardVisible",
  1147. "OverrideMouseIconBehavior",
  1148. "StatusBarSize",
  1149. "TouchEnabled",
  1150. "UserHeadCFrame",
  1151. "GuiInputUserCFrame",
  1152. "VRDeviceName",
  1153. "Value",
  1154. "ConstrainedValue",
  1155. "MaxValue",
  1156. "MinValue",
  1157. "AdditionalLuaState",
  1158. }
  1159. local count = 0
  1160. local vars = {
  1161.    
  1162. }
  1163. function supported(obj)
  1164.     if supportedClasses[obj.className] then
  1165.         return true
  1166.     end
  1167.     return false
  1168. end
  1169. function propertyExists(udata,property)
  1170.     local ret,def = pcall(function() return udata[property] end)
  1171.     local e = Instance.new(udata.className,nil)
  1172.     local ret1,def = pcall(function() e[property] = udata[property] end)
  1173.     if e:IsA("GuiObject") and property=="Transparency" then return false end
  1174.     e:Destroy()
  1175.     return (ret and ret1)
  1176. end
  1177. function getVariable(obj)
  1178.     return vars[obj]
  1179. end
  1180. function assignVariable(obj)
  1181.     vars[obj] = ("%s%s"):format(obj.className,count)
  1182.     count = count + 1
  1183.     return vars[obj]
  1184. end
  1185. function serializeProperty(prop)
  1186.     if typeof(prop)=="Vector2" or typeof(prop) == "Vector3" or typeof(prop) == "UDim" or typeof(prop)=="Color3" or typeof(prop)=="CFrame" then
  1187.         return ("%s.new(%s)"):format(typeof(prop),tostring(prop))
  1188.     elseif typeof(prop)=="BrickColor" then
  1189.         return ("BrickColor.new(\"%s\")"):format(tostring(prop))
  1190.     elseif typeof(prop)=="UDim2" then
  1191.         return ("UDim2.new(%s, %s)"):format(tostring(prop.X),tostring(prop.Y))
  1192.     elseif typeof(prop)=="Instance" then
  1193.         return tostring(vars[prop])
  1194.     elseif typeof(prop)=="string" then
  1195.         return ("\"%s\""):format(prop)
  1196.     elseif typeof(prop)=="NumberRange" then
  1197.         return ("NumberRange.new(%s, %s)"):format(prop.Min,prop.Max)
  1198.     elseif typeof(prop)=="Faces" then
  1199.         local tr = {}
  1200.         if prop.Top==true then
  1201.             table.insert(tr,tostring(Enum.NormalId.Top))
  1202.         end
  1203.         if prop.Bottom==true then
  1204.             table.insert(tr,tostring(Enum.NormalId.Bottom))
  1205.         end
  1206.         if prop.Back==true then
  1207.             table.insert(tr,tostring(Enum.NormalId.Back))
  1208.         end
  1209.         if prop.Front==true then
  1210.             table.insert(tr,tostring(Enum.NormalId.Front))
  1211.         end
  1212.         if prop.Right==true then
  1213.             table.insert(tr,tostring(Enum.NormalId.Right))
  1214.         end
  1215.         if prop.Left==true then
  1216.             table.insert(tr,tostring(Enum.NormalId.Left))
  1217.         end
  1218.         return ("Faces.new(%s)"):format(table.concat(tr,","))
  1219.     elseif typeof(prop)=="Axes" then
  1220.         local tr = {}
  1221.         if prop.X==true then
  1222.             table.insert(tr,tostring(Enum.Axis.X))
  1223.         end
  1224.         if prop.Top==true then
  1225.             table.insert(tr,tostring(Enum.NormalId.Top))
  1226.         end
  1227.         if prop.Bottom==true then
  1228.             table.insert(tr,tostring(Enum.NormalId.Bottom))
  1229.         end
  1230.         if prop.Y==true then
  1231.             table.insert(tr,tostring(Enum.Axis.Y))
  1232.         end
  1233.         if prop.Back==true then
  1234.             table.insert(tr,tostring(Enum.NormalId.Back))
  1235.         end
  1236.         if prop.Front==true then
  1237.             table.insert(tr,tostring(Enum.NormalId.Front))
  1238.         end
  1239.         if prop.Z==true then
  1240.             table.insert(tr,tostring(Enum.Axis.Z))
  1241.         end
  1242.         if prop.Right==true then
  1243.             table.insert(tr,tostring(Enum.NormalId.Right))
  1244.         end
  1245.         if prop.Left==true then
  1246.             table.insert(tr,tostring(Enum.NormalId.Left))
  1247.         end
  1248.         return ("Axes.new(%s)"):format(table.concat(tr,","))
  1249.     elseif typeof(prop)=="NumberSequence" or typeof(prop)=="ColorSequence" then
  1250.         local tr = {}
  1251.         for i,v in pairs(prop.Keypoints) do
  1252.             table.insert(tr,serializeProperty(v.Value))
  1253.         end
  1254.         return ("%s.new(%s)"):format(typeof(prop),table.concat(tr,","))
  1255.     elseif typeof(prop)=="Ray" then
  1256.         return ("Ray.new(%s,%s)"):format(serializeProperty(prop.Origin),serializeProperty(prop.Direction))
  1257.     end
  1258.     return tostring(prop)
  1259. end
  1260. function isChanged(obj,prop)
  1261.     local test = Instance.new(obj.className)
  1262.     local bool = obj[prop]==test[prop]
  1263.     test:Destroy()
  1264.     return not bool
  1265. end
  1266. function createDeclaration(obj)
  1267.     local var = assignVariable(obj)
  1268.     return ("%s = Instance.new(\"%s\")"):format(var,obj.className)
  1269. end
  1270. function createFunction(var,source)
  1271.     local s = "table.insert(cors,sandbox(%s,function()\n%s\nend))"
  1272.     return s:format(var,source)
  1273. end
  1274. function serializeObjectProperties(obj)
  1275.     local var = getVariable(obj)
  1276.     if var~=nil then
  1277.         local strs = {}
  1278.         for i,v in pairs(supportedProperties) do
  1279.             if propertyExists(obj,v) and isChanged(obj,v) then
  1280.                 local hadSource = false
  1281.                 if v~="Source" and v~="Parent" then
  1282.                     local str = ("%s.%s = %s"):format(var,v,serializeProperty(obj[v]))
  1283.                     table.insert(strs,str)
  1284.                 elseif v=="Parent" then
  1285.                     local str = ("%s.Parent = %s"):format(var,vars[obj.Parent] or "mas")
  1286.                     table.insert(strs,str)
  1287.                 else   
  1288.                     hadSource = true
  1289.                 end
  1290.                 if hadSource then
  1291.                     table.insert(strs,createFunction(var,""))
  1292.                 end
  1293.             end
  1294.         end
  1295.         return table.concat(strs,"\n")
  1296.     end
  1297.     return nil
  1298. end
  1299. header = [[
  1300. --Converted with ttyyuu12345's model to script plugin v4
  1301. function sandbox(var,func)
  1302.     local env = getfenv(func)
  1303.     local newenv = setmetatable({},{
  1304.         __index = function(self,k)
  1305.             if k=="script" then
  1306.                 return var
  1307.             else
  1308.                 return env[k]
  1309.             end
  1310.         end,
  1311.     })
  1312.     setfenv(func,newenv)
  1313.     return func
  1314. end
  1315. cors = {}
  1316. mas = Instance.new("Model",game:GetService("Lighting"))]]
  1317. footer = [[
  1318. for i,v in pairs(cors) do
  1319.     spawn(function()
  1320.         pcall(v)
  1321.     end)
  1322. end
  1323. ]]
  1324. local orig_header = header
  1325. local orig_footer = footer
  1326. local parent = "workspace"
  1327. local typeScript = "Script"
  1328. local strings = {""}
  1329. local currentIndex = 1
  1330. local selection = {}
  1331. tree = function(obj)
  1332.     local ret = {}
  1333.     local args = {}
  1334.     local chil = obj:GetChildren()
  1335.     for i,v in pairs(chil) do
  1336.         if supported(v) then
  1337.             table.insert(ret,v)
  1338.         end
  1339.         local subTree = tree(v)
  1340.         for j,u in pairs(subTree) do
  1341.             table.insert(ret,u)
  1342.         end
  1343.     end
  1344.     return ret
  1345. end
  1346. function combine(...)
  1347.     local args = {...}
  1348.     local ret = args[1] or {}
  1349.     for i=2,#args do
  1350.         table.insert(ret,args[i])
  1351.     end
  1352.     return ret
  1353. end
  1354. function concatenate(str)
  1355.     if #strings[currentIndex]<=120000 then
  1356.         strings[currentIndex] = ("%s\n%s"):format(strings[currentIndex],str)
  1357.     else
  1358.         currentIndex = currentIndex + 1
  1359.         strings[currentIndex] = str
  1360.     end
  1361. end
  1362. local clearObjects = false
  1363. function Compile()
  1364.     print("This might take a few minutes, freezing is to be expected")
  1365.     wait()
  1366.     local percent = 0
  1367.     if typeScript=="ModuleScript" then
  1368.         header = ("%s\n%s"):format("return function()",header)
  1369.         footer = ("%s\n%s"):format(footer,"end")
  1370.     end
  1371.     concatenate(header)
  1372.     local sel = {}
  1373.     local items = {}
  1374.     for i,v in pairs(selection) do
  1375.         if supported(v) then table.insert(items,v) end
  1376.         local tr = tree(v)
  1377.         for j,u in pairs(tr) do
  1378.             table.insert(items,u)
  1379.         end
  1380.     end
  1381.     --local items = combine(unpack(sel))
  1382.     if clearObjects then
  1383.         concatenate("local chil = workspace:GetChildren()\nfor i,v in pairs(chil) do\n\tif not (v==script or v:IsA(\"Camera\") or v:IsA(\"Terrain\") or game:GetService(\"Players\"):GetPlayerFromCharacter(v)~=nil) then\n\t\tv:Destroy()\n\tend\nend")
  1384.     end
  1385.     for i,v in pairs(items) do
  1386.         concatenate(createDeclaration(v))
  1387.     end
  1388.     for i,v in pairs(items) do
  1389.         concatenate(serializeObjectProperties(v))
  1390.     end
  1391.     local combine = ("for i,v in pairs(mas:GetChildren()) do\n\tv.Parent = %s\n\tpcall(function() v:MakeJoints() end)\nend\nmas:Destroy()"):format(parent)
  1392.     footer = ("%s\n%s"):format(combine,footer)
  1393.     concatenate(footer)
  1394.     local model = Instance.new("Model",workspace)
  1395.     model.Name = "CompiledScripts"
  1396.     for i,v in pairs(strings) do
  1397.         --local scr = Instance.new(typeScript,model)
  1398.         --scr.Name = ("%s%s"):format("Script",i)
  1399.         --scr.Source = v
  1400.         local sgui = Instance.new("ScreenGui", script.Parent == owner.PlayerGui and script or owner.PlayerGui)
  1401.         local tb = Instance.new("TextBox", sgui)
  1402.         tb.Size = UDim2.new(0.7, 0, 0.7, 0)
  1403.         tb.BorderSizePixel = 0
  1404.         tb.BackgroundColor3 = Color3.new(1, 1, 1)
  1405.         tb.ClearTextOnFocus = false
  1406.         tb.TextEditable = false
  1407.         tb.Font = "Arial"
  1408.         tb.TextSize = 18
  1409.         tb.TextColor3 = Color3.new(0, 0, 0)
  1410.         tb.TextStrokeTransparency = 1
  1411.         tb.Text = v
  1412.     end
  1413.     selection = {}
  1414.     strings = {""}
  1415.     currentIndex = 1
  1416.     header = orig_header
  1417.     footer = orig_footer
  1418.     count = 0
  1419.     clearObjects = false
  1420.     print("done")
  1421. end
  1422. local Prompts = {
  1423.     {
  1424.         Title = "Terms of service",
  1425.         Text = {
  1426.             "Do not use this to create inappropriate scripts",
  1427.             "The roblox ToS is expected to be upheld",
  1428.             "Do not use this to be abusive on Void SB",
  1429.         },
  1430.         Options = function()
  1431.             return {
  1432.                 Accept = function()
  1433.                    
  1434.                 end,
  1435.                 Decline = function()
  1436.                     while true do end
  1437.                 end
  1438.             }
  1439.         end
  1440.     },
  1441.     {
  1442.         Title = "Please select a type of script",
  1443.         Options = function()
  1444.             return {
  1445.                 Script = function()
  1446.                     typeScript = "Script"
  1447.                 end,
  1448.                 LocalScript = function()
  1449.                     typeScript = "LocalScript"
  1450.                 end,
  1451.                 ModuleScript = function()
  1452.                     typeScript = "ModuleScript"
  1453.                 end
  1454.             }
  1455.         end,
  1456.     },
  1457.     {
  1458.         Title = "Please select a parent",
  1459.         Options = function()
  1460.             local tbl = {
  1461.                 workspace = function()
  1462.                     parent = "workspace"
  1463.                 end,
  1464.                 script = function()
  1465.                     parent = "script"
  1466.                 end,
  1467.                 ["game:GetService(\"Lighting\")"] = function()
  1468.                     parent = "game:GetService(\"Lighting\")"
  1469.                 end,
  1470.             }
  1471.             if typeScript=="LocalScript" then
  1472.                 local base = "game:GetService(\"Players\").LocalPlayer"
  1473.                 tbl["PlayerGui"] = function()
  1474.                     parent = ("%s.%s"):format(base,"PlayerGui")
  1475.                 end
  1476.                 tbl["Backpack"] = function()
  1477.                     parent =("%s.%s"):format(base,"Backpack")
  1478.                 end
  1479.                 tbl["Character"] = function()
  1480.                     parent = ("%s.%s"):format(base,"Character")
  1481.                 end
  1482.             end
  1483.             return tbl
  1484.         end
  1485.     },
  1486.     {
  1487.         Title = "Please chose what to convert",
  1488.         Options = function()
  1489.             return {
  1490.                 ["Convert selection"] = function()
  1491.                     --selection = game:GetService("Selection"):Get()
  1492.                     selection = {owner.PlayerGui:findFirstChild("SB_Selector")}
  1493.                 end,
  1494.                 ["Convert workspace"] = function()
  1495.                     clearObjects = true
  1496.                     selection = workspace:GetChildren()
  1497.                 end,
  1498.             }
  1499.         end
  1500.     }
  1501. }
  1502.  
  1503. selection = {owner.PlayerGui:findFirstChild("SB_Selector")}
  1504. Compile()
Add Comment
Please, Sign In to add comment