mr2meows

dumface

Mar 11th, 2023
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.03 KB | None | 0 0
  1. --✟_SPYRMAM_YT✟#9935
  2. --BROUGHT TO YOU BY RSCRIPTS.NET--
  3.  
  4. -- _____ _ _ ___ ___ __ __
  5. -- | __ \ | | | | |__ \ / _ \/_ | / /
  6. -- | |__) |___ | |__ | | _____ __ ) | | | || |/ /_
  7. -- | _ // _ \| '_ \| |/ _ \ \/ / / /| | | || | '_ \
  8. -- | | \ \ (_) | |_) | | (_) > < / /_| |_| || | (_) |
  9. -- |_| \_\___/|_.__/|_|\___/_/\_\ |____|\___/ |_|\___/
  10. --
  11. -- Script made by Invisible_
  12. -- I miss you 2016 InfoProvider:LoadAssets:", result)
  13. end
  14. end))
  15. end)
  16. end
  17.  
  18. function MainGui:tileBackgroundTexture(frameToFill)
  19. if not frameToFill then return end
  20. frameToFill:ClearAllChildren()
  21. if backgroundImageTransparency < 1 xss=removed xss=removed xss=removed Name = 'BackgroundTextureImage' xss=removed xss=removed Image = 'rbxasset://textures/loading/darkLoadingTexture.png' xss=removed xss=removed xss=removed xss=removed xss=removed Name = "CancelLabel" xss=removed xss=removed xss=removed Image = 'rbxasset://textures/ui/Shell/ButtonIcons/BButton.png' xss=removed Name = "CancelText" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed Text = "Cancel" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed cancelText.Text = "Canceling..." xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed Name = 'RobloxLoadingGui' xss=removed Name = 'BlackFrame' xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed Name = 'CloseButton' Image = 'rbxasset://textures/loading/cancelButton.png' xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed Name = 'GraphicsFrame' xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed Name = 'LoadingImage' xss=removed Image = 'rbxasset://textures/loading/loadingCircle.png' xss=removed xss=removed xss=removed xss=removed xss=removed Name = 'LoadingText' xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed Text = "Loading..." xss=removed xss=removed xss=removed Name = 'UiMessageFrame' xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed Name = 'UiMessage' xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed Text = "" xss=removed xss=removed xss=removed Name = 'InfoFrame' xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed Name = 'PlaceLabel' xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed Text = "" xss=removed xss=removed xss=removed xss=removed xss=removed Name = "ByLabel" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed Text = "By" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed Name = "CreatorIcon" xss=removed xss=removed xss=removed xss=removed Image = 'rbxasset://textures/ui/Shell/Icons/RobloxIcon32.png' xss=removed xss=removed xss=removed xss=removed Name = 'CreatorLabel' xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed Text = "" xss=removed xss=removed xss=removed xss=removed xss=removed Name = 'BackgroundTextureFrame' xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed Name = 'ErrorFrame' xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed Name = "ErrorText" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed Text = "" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed loadingDots = "..." xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed creatorLabel.Text = "By " xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed loadingDots = "" currScreenGui.BlackFrame.GraphicsFrame.LoadingText.Text = "Loading">= dotChangeTime and InfoProvider:GetCreatorName() == "" then
  22. lastDotUpdateTime = currentTime
  23. updateLoadingDots()
  24. else
  25. if guiService:GetBrickCount() > 0 then
  26. if brickCountChange == nil then
  27. brickCountChange = guiService:GetBrickCount()
  28. end
  29. if guiService:GetBrickCount() - lastBrickCount >= brickCountChange then
  30. lastBrickCount = guiService:GetBrickCount()
  31. updateLoadingDots()
  32. end
  33. end
  34. end
  35.  
  36. if not isTenFootInterface then
  37. if currentTime - startTime > 5 and currScreenGui.BlackFrame.CloseButton.ImageTransparency > 0 then
  38. currScreenGui.BlackFrame.CloseButton.ImageTransparency = currScreenGui.BlackFrame.CloseButton.ImageTransparency - fadeAmount
  39.  
  40. if currScreenGui.BlackFrame.CloseButton.ImageTransparency <= 0 then
  41. currScreenGui.BlackFrame.CloseButton.Active = true
  42. end
  43. end
  44. end
  45. end)
  46.  
  47. task.spawn(function()
  48. local RobloxGui = game:GetService("CoreGui"):WaitForChild("RobloxGui")
  49. local guiInsetChangedEvent = Instance.new("BindableEvent")
  50. guiInsetChangedEvent.Name = "GuiInsetChanged"
  51. guiInsetChangedEvent.Parent = RobloxGui
  52. guiInsetChangedEvent.Event:connect(function(x1, y1, x2, y2)
  53. if currScreenGui and currScreenGui:FindFirstChild("BlackFrame") then
  54. currScreenGui.BlackFrame.Position = UDim2.new(0, -x1, 0, -y1)
  55. currScreenGui.BlackFrame.Size = UDim2.new(1, x1 + x2, 1, y1 + y2)
  56. end
  57. end)
  58. end)
  59.  
  60. local leaveGameButton, leaveGameTextLabel, errorImage = nil
  61.  
  62. guiService.ErrorMessageChanged:connect(function()
  63. if guiService:GetErrorMessage() ~= '' then
  64. if isTenFootInterface then
  65. currScreenGui.ErrorFrame.Size = UDim2.new(1, 0, 0, 144)
  66. currScreenGui.ErrorFrame.Position = UDim2.new(0, 0, 0, 0)
  67. currScreenGui.ErrorFrame.BackgroundColor3 = COLORS.BLACK
  68. currScreenGui.ErrorFrame.BackgroundTransparency = 0.5
  69. currScreenGui.ErrorFrame.ErrorText.FontSize = Enum.FontSize.Size36
  70. currScreenGui.ErrorFrame.ErrorText.Position = UDim2.new(.3, 0, 0, 0)
  71. currScreenGui.ErrorFrame.ErrorText.Size = UDim2.new(.4, 0, 0, 144)
  72. if errorImage == nil then
  73. errorImage = Instance.new("ImageLabel")
  74. errorImage.Image = "rbxasset://textures/ui/ErrorIconSmall.png"
  75. errorImage.Size = UDim2.new(0, 96, 0, 79)
  76. errorImage.Position = UDim2.new(0.228125, 0, 0, 32)
  77. errorImage.ZIndex = 9
  78. errorImage.BackgroundTransparency = 1
  79. errorImage.Parent = currScreenGui.ErrorFrame
  80. end
  81. -- we show a B button to kill game data model on console
  82. if not isTenFootInterface then
  83. if leaveGameButton == nil then
  84. local RobloxGui = game:GetService("CoreGui"):WaitForChild("RobloxGui")
  85. local utility = require(RobloxGui.Modules.Settings.Utility)
  86. local textLabel = nil
  87. leaveGameButton, leaveGameTextLabel = utility:MakeStyledButton("LeaveGame", "Leave", UDim2.new(0, 288, 0, 78))
  88. leaveGameButton.NextSelectionDown = leaveGameButton
  89. leaveGameButton.NextSelectionLeft = leaveGameButton
  90. leaveGameButton.NextSelectionRight = leaveGameButton
  91. leaveGameButton.NextSelectionUp = leaveGameButton
  92. leaveGameButton.ZIndex = 9
  93. leaveGameButton.Position = UDim2.new(0.771875, 0, 0, 37)
  94. leaveGameButton.Parent = currScreenGui.ErrorFrame
  95. leaveGameTextLabel.FontSize = Enum.FontSize.Size36
  96. leaveGameTextLabel.ZIndex = 10
  97. game:GetService("GuiService").SelectedCoreObject = leaveGameButton
  98. else
  99. game:GetService("GuiService").SelectedCoreObject = leaveGameButton
  100. end
  101. end
  102. end
  103. currScreenGui.ErrorFrame.ErrorText.Text = guiService:GetErrorMessage()
  104. currScreenGui.ErrorFrame.Visible = true
  105. local blackFrame = currScreenGui:FindFirstChild('BlackFrame')
  106. if blackFrame then
  107. blackFrame.CloseButton.ImageTransparency = 0
  108. blackFrame.CloseButton.Active = true
  109. end
  110. else
  111. currScreenGui.ErrorFrame.Visible = false
  112. end
  113. end)
  114.  
  115. guiService.UiMessageChanged:connect(function(type, newMessage)
  116. if type == Enum.UiMessageType.UiMessageInfo then
  117. local blackFrame = currScreenGui and currScreenGui:FindFirstChild('BlackFrame')
  118. if blackFrame then
  119. blackFrame.UiMessageFrame.UiMessage.Text = newMessage
  120. if newMessage ~= '' then
  121. blackFrame.UiMessageFrame.Visible = true
  122. else
  123. blackFrame.UiMessageFrame.Visible = false
  124. end
  125. end
  126. end
  127. end)
  128.  
  129. if guiService:GetErrorMessage() ~= '' then
  130. currScreenGui.ErrorFrame.ErrorText.Text = guiService:GetErrorMessage()
  131. currScreenGui.ErrorFrame.Visible = true
  132. end
  133.  
  134.  
  135. function stopListeningToRenderingStep()
  136. if renderSteppedConnection then
  137. renderSteppedConnection:disconnect()
  138. renderSteppedConnection = nil
  139. end
  140. end
  141.  
  142. function fadeAndDestroyBlackFrame(blackFrame)
  143. if destroyingBackground then return end
  144. destroyingBackground = true
  145. task.spawn(function()
  146. local infoFrame = blackFrame:FindFirstChild("InfoFrame")
  147. local graphicsFrame = blackFrame:FindFirstChild("GraphicsFrame")
  148.  
  149. local infoFrameChildren = infoFrame:GetChildren()
  150. local transparency = 0
  151. local rateChange = 1.8
  152. local lastUpdateTime = nil
  153.  
  154. while transparency < 1 xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed i=1, xss=removed xss=removed> 0)
  155.  
  156. if not hasReplicatedFirstElements then
  157. if game:IsLoaded() then
  158. handleRemoveDefaultLoadingGui()
  159. else
  160. local gameLoadedCon = nil
  161. gameLoadedCon = game.Loaded:connect(function()
  162. gameLoadedCon:disconnect()
  163. gameLoadedCon = nil
  164. handleRemoveDefaultLoadingGui()
  165. end)
  166. end
  167. else
  168. wait(5) -- make sure after 5 seconds we remove the default gui, even if the user doesn't
  169. handleRemoveDefaultLoadingGui()
  170. end
  171. end
  172.  
  173. function handleRemoveDefaultLoadingGui(instant)
  174. if isTenFootInterface then
  175. ContextActionService:UnbindCoreAction('CancelGameLoad')
  176. end
  177. destroyLoadingElements(instant)
  178. end
  179.  
  180. game:GetService("ReplicatedFirst").FinishedReplicating:connect(handleFinishedReplicating)
  181. if game:GetService("ReplicatedFirst"):IsFinishedReplicating() then
  182. handleFinishedReplicating()
  183. end
  184.  
  185. game:GetService("ReplicatedFirst").RemoveDefaultLoadingGuiSignal:connect(handleRemoveDefaultLoadingGui)
  186. if game:GetService("ReplicatedFirst"):IsDefaultLoadingGuiRemoved() then
  187. handleRemoveDefaultLoadingGui()
  188. end
  189.  
  190. local UserInputServiceChangedConn;
  191. local function onUserInputServiceChanged(prop)
  192. if prop == 'VREnabled' then
  193. local UseVr = false
  194. pcall(function() UseVr = UIS.VREnabled end)
  195.  
  196. if UseVr then
  197. if UserInputServiceChangedConn then
  198. UserInputServiceChangedConn:disconnect()
  199. UserInputServiceChangedConn = nil
  200. end
  201. handleRemoveDefaultLoadingGui(true)
  202. require(RobloxGui.Modules.LoadingScreen3D)
  203. end
  204. end
  205. end
  206.  
  207. UserInputServiceChangedConn = UIS.Changed:connect(onUserInputServiceChanged)
  208. onUserInputServiceChanged('VREnabled')
  209. end)
  210.  
  211. task.spawn(function()
  212. -- Creates all neccessary scripts for the gui on initial load, everything except build tools
  213. -- Created by Ben T. 10/29/10
  214. -- Please note that these are loaded in a specific order to diminish errors/perceived load time by user
  215.  
  216. local scriptContext = game:GetService("ScriptContext")
  217. local touchEnabled = game:GetService("UserInputService").TouchEnabled
  218.  
  219. local RobloxGui = game:GetService("CoreGui"):WaitForChild("RobloxGui")
  220.  
  221. local soundFolder = Instance.new("Folder")
  222. soundFolder.Name = "Sounds"
  223. soundFolder.Parent = RobloxGui
  224.  
  225. -- This can be useful in cases where a flag configuration issue causes requiring a CoreScript to fail
  226. local function safeRequire(moduleScript)
  227. local moduleReturnValue = nil
  228. local success, err = pcall(function() moduleReturnValue = require(moduleScript) end)
  229. if not success then
  230. warn("Failure to Start CoreScript module" ..moduleScript.Name.. ".\n" ..err)
  231. end
  232. return moduleReturnValue
  233. end
  234.  
  235. --CUSTOM FUNCTION FOR SYNAPSE X
  236. function AddCoreScriptLocal(str)
  237. local Inject = [==[
  238. --Get names
  239. script.Name = script.Name..[[]==]..str..[==[]]
  240. --FAKE SCRIPT
  241. local script = Instance.new("LocalScript", game.CoreGui.RobloxGui)
  242. script.Name = [[CoreScripts/]==]..str..[==[]]
  243. script.Disabled = true
  244. script.Source = [[print("Doin' your mom")]]
  245.  
  246. ]==]
  247.  
  248. loadstring(Inject..tostring(RobloxGui.CoreScriptSyn[str].Source))()
  249. end
  250.  
  251. -- TopBar
  252. task.spawn(function()
  253. AddCoreScriptLocal("Topbar")
  254. end)
  255. -- SettingsScript
  256. local luaControlsSuccess, luaControlsFlagValue = pcall(function() return settings():GetFFlag("UseLuaCameraAndControl") end)
  257.  
  258. -- MainBotChatScript (the Lua part of Dialogs)
  259. task.spawn(function()
  260. AddCoreScriptLocal("MainBotChatScript2")
  261. end)
  262.  
  263. -- In-game notifications script
  264. task.spawn(function()
  265. AddCoreScriptLocal("NotificationScript2")
  266. end)
  267. -- Performance Stats Management
  268. task.spawn(function()
  269. AddCoreScriptLocal("PerformanceStatsManagerScript")
  270. end)
  271.  
  272. -- Chat script
  273. task.spawn(function() safeRequire(RobloxGui.Modules.ChatSelector) end)
  274. task.spawn(function() safeRequire(RobloxGui.Modules.PlayerlistModule) end)
  275. task.spawn(function()
  276. AddCoreScriptLocal("BubbleChat")
  277. end)
  278. -- Purchase Prompt Script (run both versions, they will check the relevant flag)
  279. task.spawn(function()
  280. AddCoreScriptLocal("PurchasePromptScript2")
  281. end)
  282. task.spawn(function()
  283. AddCoreScriptLocal("PurchasePromptScript3")
  284. end)
  285.  
  286. -- Backpack!
  287. task.spawn(function() safeRequire(RobloxGui.Modules.BackpackScript) end)
  288. task.spawn(function()
  289. AddCoreScriptLocal("VehicleHud")
  290. end)
  291. task.spawn(function()
  292. AddCoreScriptLocal("GamepadMenu")
  293. end)
  294. if touchEnabled then -- touch devices don't use same control frame
  295. -- only used for touch device button generation
  296. task.spawn(function()
  297. AddCoreScriptLocal("ContextActionTouch")
  298. end)
  299. RobloxGui:WaitForChild("ControlFrame")
  300. RobloxGui.ControlFrame:WaitForChild("BottomLeftControl")
  301. RobloxGui.ControlFrame.BottomLeftControl.Visible = false
  302. end
  303.  
  304. do
  305. local UserInputService = game:GetService('UserInputService')
  306. local function tryRequireVRKeyboard()
  307. if UserInputService.VREnabled then
  308. return safeRequire(RobloxGui.Modules.VR.VirtualKeyboard)
  309. end
  310. return nil
  311. end
  312. if not tryRequireVRKeyboard() then
  313. UserInputService.Changed:connect(function(prop)
  314. if prop == "VREnabled" then
  315. tryRequireVRKeyboard()
  316. end
  317. end)
  318. end
  319. end
  320.  
  321. -- Boot up the VR App Shell
  322. if UserSettings().GameSettings:InStudioMode() then
  323. local UserInputService = game:GetService('UserInputService')
  324. local function onVREnabled(prop)
  325. if prop == "VREnabled" then
  326. if UserInputService.VREnabled then
  327. local shellInVRSuccess, shellInVRFlagValue = pcall(function() return settings():GetFFlag("EnabledAppShell3D") end)
  328. local shellInVR = (shellInVRSuccess and shellInVRFlagValue == true)
  329. local modulesFolder = RobloxGui.Modules
  330. local appHomeModule = modulesFolder:FindFirstChild('Shell') and modulesFolder:FindFirstChild('Shell'):FindFirstChild('AppHome')
  331. if shellInVR and appHomeModule then
  332. safeRequire(appHomeModule)
  333. end
  334. end
  335. end
  336. end
  337.  
  338. task.spawn(function()
  339. if UserInputService.VREnabled then
  340. onVREnabled("VREnabled")
  341. end
  342. UserInputService.Changed:connect(onVREnabled)
  343. end)
  344. end
  345. end)
Add Comment
Please, Sign In to add comment