Advertisement
Guest User

Untitled

a guest
Feb 19th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.89 KB | None | 0 0
  1.  
  2.  
  3. -- FrontEnd // UI
  4.  
  5. -- Objects
  6.  
  7. local RemoteSpy = Instance.new("ScreenGui")
  8. local BG = Instance.new("Frame")
  9. local Ribbon = Instance.new("ImageLabel")
  10. local Hide = Instance.new("TextButton")
  11. local Title = Instance.new("TextLabel")
  12. local Remotes = Instance.new("ScrollingFrame")
  13. local Source = Instance.new("ScrollingFrame")
  14. local ButtonsFrame = Instance.new("ScrollingFrame")
  15. local ToClipboard = Instance.new("TextButton")
  16. local Decompile = Instance.new("TextButton")
  17. local GetReturn = Instance.new("TextButton")
  18. local ClearList = Instance.new("TextButton")
  19. local CryptStrings = Instance.new("TextButton")
  20. local EnableSpy = Instance.new("TextButton")
  21. local Last = Instance.new("TextLabel")
  22. local Total = Instance.new("TextLabel")
  23. local Settings = Instance.new("TextButton")
  24. local SetRemotes = Instance.new("ScrollingFrame")
  25. local Storage = Instance.new("Frame")
  26. local RBTN = Instance.new("TextButton")
  27. local Icon = Instance.new("ImageLabel")
  28. local RemoteName = Instance.new("TextLabel")
  29. local ID = Instance.new("TextLabel")
  30. local SBTN = Instance.new("TextButton")
  31. local Icon_2 = Instance.new("ImageLabel")
  32. local RemoteName_2 = Instance.new("TextLabel")
  33. local ScriptLine = Instance.new("Frame")
  34. local Line = Instance.new("TextLabel")
  35. local SourceText = Instance.new("TextLabel")
  36. local Tokens = Instance.new("TextLabel")
  37. local Strings = Instance.new("TextLabel")
  38. local Comments = Instance.new("TextLabel")
  39. local Keywords = Instance.new("TextLabel")
  40. local Globals = Instance.new("TextLabel")
  41. local RemoteHighlight = Instance.new("TextLabel")
  42. local Enabled = Instance.new("TextLabel")
  43. local FullScreen = Instance.new("TextButton")
  44. local SetRemotesTab = Instance.new("Frame")
  45. local FilterF = Instance.new("TextButton")
  46. local FilterE = Instance.new("TextButton")
  47. local Search = Instance.new("TextBox")
  48. local lvl6Frame = Instance.new("Frame")
  49. local lvl6Output = Instance.new("ScrollingFrame")
  50. local lvl6Source = Instance.new("ScrollingFrame")
  51. local Source_ = Instance.new("TextBox")
  52. local Comments_ = Instance.new("TextLabel")
  53. local Globals_ = Instance.new("TextLabel")
  54. local Keywords_ = Instance.new("TextLabel")
  55. local RemoteHighlight_ = Instance.new("TextLabel")
  56. local SourceText_ = Instance.new("TextLabel")
  57. local Strings_ = Instance.new("TextLabel")
  58. local Tokens_ = Instance.new("TextLabel")
  59. local ClearScript = Instance.new("TextButton")
  60. local ExecuteScript = Instance.new("TextButton")
  61. local Resize = Instance.new("TextButton")
  62. local lvl6 = Instance.new("TextButton")
  63. local ClearOutput = Instance.new("TextButton")
  64. local Label = Instance.new("TextLabel")
  65. local Lines = Instance.new("TextLabel")
  66. local remotes_fired = 0
  67. local encrypt_string = false
  68. local spy_enabled = true
  69.  
  70. local lua_keywords = {"and", "break", "do", "else", "elseif", "end", "false", "for", "function", "goto", "if", "in", "local", "nil", "not", "or", "repeat", "return", "then", "true", "until", "while"}
  71. local global_env = {"getrawmetatable", "game", "workspace", "script", "math", "string", "table", "print", "wait", "BrickColor", "Color3", "next", "pairs", "ipairs", "select", "unpack", "Instance", "Vector2", "Vector3", "CFrame", "Ray", "UDim2", "Enum", "assert", "error", "warn", "tick", "loadstring", "_G", "shared", "getfenv", "setfenv", "newproxy", "setmetatable", "getmetatable", "os", "debug", "pcall", "ypcall", "xpcall", "rawequal", "rawset", "rawget", "tonumber", "tostring", "type", "typeof", "_VERSION", "coroutine", "delay", "require", "spawn", "LoadLibrary", "settings", "stats", "time", "UserSettings", "version", "Axes", "ColorSequence", "Faces", "ColorSequenceKeypoint", "NumberRange", "NumberSequence", "NumberSequenceKeypoint", "gcinfo", "elapsedTime", "collectgarbage", "PhysicalProperties", "Rect", "Region3", "Region3int16", "UDim", "Vector2int16", "Vector3int16"}
  72.  
  73. -- Properties
  74.  
  75. RemoteSpy.Name = "RemoteSpy"
  76. RemoteSpy.Parent = game.CoreGui
  77.  
  78. BG.Name = "BG"
  79. BG.Parent = RemoteSpy
  80. BG.Active = true
  81. BG.BackgroundColor3 = Color3.new(0.141176, 0.141176, 0.141176)
  82. BG.BorderColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  83. BG.Draggable = true
  84. BG.Position = UDim2.new(0.5, -700, 0.5, -400)
  85. BG.Size = UDim2.new(1, -300, 1, -200)
  86. BG.ClipsDescendants = true
  87.  
  88. Ribbon.Name = "Ribbon"
  89. Ribbon.Parent = BG
  90. Ribbon.BackgroundColor3 = Color3.new(0.760784, 0.0117647, 0.317647)
  91. Ribbon.BorderSizePixel = 0
  92. Ribbon.Size = UDim2.new(1, 0, 0, 20)
  93. Ribbon.ZIndex = 2
  94.  
  95. Hide.Name = "Hide"
  96. Hide.Parent = Ribbon
  97. Hide.BackgroundColor3 = Color3.new(1, 0, 0)
  98. Hide.BorderSizePixel = 0
  99. Hide.Position = UDim2.new(1, -40, 0, 0)
  100. Hide.Size = UDim2.new(0, 40, 0, 20)
  101. Hide.ZIndex = 3
  102. Hide.Font = Enum.Font.SourceSansBold
  103. Hide.FontSize = Enum.FontSize.Size14
  104. Hide.Text = "_"
  105. Hide.TextColor3 = Color3.new(1, 1, 1)
  106. Hide.TextSize = 14
  107.  
  108. Title.Name = "Title"
  109. Title.Parent = Ribbon
  110. Title.BackgroundColor3 = Color3.new(1, 0.0117647, 0.423529)
  111. Title.BorderSizePixel = 0
  112. Title.Position = UDim2.new(0.5, -100, 0, 0)
  113. Title.Size = UDim2.new(0, 200, 0, 20)
  114. Title.ZIndex = 3
  115. Title.Font = Enum.Font.SourceSansBold
  116. Title.FontSize = Enum.FontSize.Size14
  117. Title.Text = "Remote2Script v2"
  118. Title.TextColor3 = Color3.new(1, 1, 1)
  119. Title.TextSize = 14
  120.  
  121. Remotes.Name = "Remotes"
  122. Remotes.Parent = BG
  123. Remotes.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  124. Remotes.BorderColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  125. Remotes.Position = UDim2.new(0, 10, 0, 80)
  126. Remotes.CanvasSize = UDim2.new(0, 0, 40, 0)
  127. Remotes.Size = UDim2.new(0, 250, 1, -90)
  128. Remotes.ZIndex = 2
  129. Remotes.BottomImage = "rbxassetid://148970562"
  130. Remotes.MidImage = "rbxassetid://148970562"
  131. Remotes.ScrollBarThickness = 5
  132. Remotes.TopImage = "rbxassetid://148970562"
  133.  
  134. Source.Name = "Source"
  135. Source.Parent = BG
  136. Source.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  137. Source.BorderColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  138. Source.Position = UDim2.new(0, 270, 0, 80)
  139. Source.Size = UDim2.new(1, -280, 1, -90)
  140. Source.ZIndex = 2
  141. Source.BottomImage = "rbxassetid://148970562"
  142. Source.CanvasSize = UDim2.new(3, 0, 160, 0)
  143. Source.MidImage = "rbxassetid://148970562"
  144. Source.ScrollBarThickness = 5
  145. Source.TopImage = "rbxassetid://148970562"
  146.  
  147. ButtonsFrame.Name = "ButtonsFrame"
  148. ButtonsFrame.Parent = BG
  149. ButtonsFrame.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  150. ButtonsFrame.BorderColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  151. ButtonsFrame.Position = UDim2.new(0, 10, 0, 30)
  152. ButtonsFrame.Size = UDim2.new(1, -20, 0, 40)
  153. ButtonsFrame.ZIndex = 2
  154. ButtonsFrame.ClipsDescendants = true
  155. ButtonsFrame.CanvasSize = UDim2.new(2, 0, 0, 0)
  156. ButtonsFrame.ScrollBarThickness = 5
  157. ButtonsFrame.BottomImage = "rbxassetid://148970562"
  158. ButtonsFrame.TopImage = "rbxassetid://148970562"
  159. ButtonsFrame.MidImage = "rbxassetid://148970562"
  160.  
  161. ToClipboard.Name = "ToClipboard"
  162. ToClipboard.Parent = ButtonsFrame
  163. ToClipboard.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  164. ToClipboard.BorderColor3 = Color3.new(0.117647, 0.392157, 0.117647)
  165. ToClipboard.Position = UDim2.new(0, 10, 0.5, -10)
  166. ToClipboard.Size = UDim2.new(0, 100, 0, 20)
  167. ToClipboard.ZIndex = 3
  168. ToClipboard.Font = Enum.Font.SourceSansBold
  169. ToClipboard.FontSize = Enum.FontSize.Size14
  170. ToClipboard.Text = "COPY"
  171. ToClipboard.TextColor3 = Color3.new(0.235294, 0.784314, 0.235294)
  172. ToClipboard.TextSize = 14
  173.  
  174. Decompile.Name = "Decompile"
  175. Decompile.Parent = ButtonsFrame
  176. Decompile.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  177. Decompile.BorderColor3 = Color3.new(0.384314, 0.384314, 0.384314)
  178. Decompile.Position = UDim2.new(0, 120, 0.5, -10)
  179. Decompile.Size = UDim2.new(0, 100, 0, 20)
  180. Decompile.ZIndex = 3
  181. Decompile.Font = Enum.Font.SourceSansBold
  182. Decompile.FontSize = Enum.FontSize.Size14
  183. Decompile.Text = "DECOMPILE"
  184. Decompile.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  185. Decompile.TextSize = 14
  186.  
  187. GetReturn.Name = "GetReturn"
  188. GetReturn.Parent = ButtonsFrame
  189. GetReturn.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  190. GetReturn.BorderColor3 = Color3.new(0.384314, 0.384314, 0.384314)
  191. GetReturn.Position = UDim2.new(0, 230, 0.5, -10)
  192. GetReturn.Size = UDim2.new(0, 100, 0, 20)
  193. GetReturn.ZIndex = 3
  194. GetReturn.Font = Enum.Font.SourceSansBold
  195. GetReturn.FontSize = Enum.FontSize.Size14
  196. GetReturn.Text = "GET RETURN"
  197. GetReturn.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  198. GetReturn.TextSize = 14
  199.  
  200. ClearList.Name = "ClearList"
  201. ClearList.Parent = ButtonsFrame
  202. ClearList.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  203. ClearList.BorderColor3 = Color3.new(0.384314, 0.384314, 0.384314)
  204. ClearList.Position = UDim2.new(0, 340, 0.5, -10)
  205. ClearList.Size = UDim2.new(0, 100, 0, 20)
  206. ClearList.ZIndex = 3
  207. ClearList.Font = Enum.Font.SourceSansBold
  208. ClearList.FontSize = Enum.FontSize.Size14
  209. ClearList.Text = "CLEAR LOGS"
  210. ClearList.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  211. ClearList.TextSize = 14
  212.  
  213. CryptStrings.Name = "CryptStrings"
  214. CryptStrings.Parent = ButtonsFrame
  215. CryptStrings.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  216. CryptStrings.BorderColor3 = Color3.new(0.392157, 0.117647, 0.117647)
  217. CryptStrings.Position = UDim2.new(0, 450, 0.5, -10)
  218. CryptStrings.Size = UDim2.new(0, 100, 0, 20)
  219. CryptStrings.ZIndex = 3
  220. CryptStrings.Font = Enum.Font.SourceSansBold
  221. CryptStrings.FontSize = Enum.FontSize.Size14
  222. CryptStrings.Text = "CRYPT STRINGS"
  223. CryptStrings.TextColor3 = Color3.new(0.784314, 0.235294, 0.235294)
  224. CryptStrings.TextSize = 14
  225.  
  226. EnableSpy.Name = "EnableSpy"
  227. EnableSpy.Parent = ButtonsFrame
  228. EnableSpy.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  229. EnableSpy.BorderColor3 = Color3.fromRGB(30, 100, 30)
  230. EnableSpy.Position = UDim2.new(0, 560, 0.5, -10)
  231. EnableSpy.Size = UDim2.new(0, 100, 0, 20)
  232. EnableSpy.ZIndex = 3
  233. EnableSpy.Font = Enum.Font.SourceSansBold
  234. EnableSpy.FontSize = Enum.FontSize.Size14
  235. EnableSpy.Text = "REMOTESPY"
  236. EnableSpy.TextColor3 = Color3.fromRGB(60, 200, 60)
  237. EnableSpy.TextSize = 14
  238.  
  239. Last.Name = "Last"
  240. Last.Parent = ButtonsFrame
  241. Last.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  242. Last.BorderColor3 = Color3.new(0.384314, 0.384314, 0.384314)
  243. Last.Position = UDim2.new(0, 670, 0.5, -10)
  244. Last.Size = UDim2.new(0, 200, 0, 20)
  245. Last.ZIndex = 3
  246. Last.Font = Enum.Font.SourceSansBold
  247. Last.FontSize = Enum.FontSize.Size14
  248. Last.Text = ""
  249. Last.TextColor3 = Color3.new(1, 1, 1)
  250. Last.TextSize = 14
  251. Last.TextWrapped = true
  252.  
  253. Total.Name = "Total"
  254. Total.Parent = ButtonsFrame
  255. Total.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  256. Total.BorderColor3 = Color3.new(0.384314, 0.384314, 0.384314)
  257. Total.Position = UDim2.new(0, 880, 0.5, -10)
  258. Total.Size = UDim2.new(0, 50, 0, 20)
  259. Total.ZIndex = 3
  260. Total.Font = Enum.Font.SourceSansBold
  261. Total.FontSize = Enum.FontSize.Size14
  262. Total.Text = "0"
  263. Total.TextColor3 = Color3.new(1, 1, 1)
  264. Total.TextSize = 14
  265. Total.TextWrapped = true
  266.  
  267. Settings.Name = "Settings"
  268. Settings.Parent = ButtonsFrame
  269. Settings.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  270. Settings.BorderColor3 = Color3.new(0.117647, 0.392157, 0.392157)
  271. Settings.Position = UDim2.new(1, -110, 0.5, -10)
  272. Settings.Size = UDim2.new(0, 100, 0, 20)
  273. Settings.ZIndex = 3
  274. Settings.Font = Enum.Font.SourceSansBold
  275. Settings.FontSize = Enum.FontSize.Size14
  276. Settings.Text = "REMOTES"
  277. Settings.TextColor3 = Color3.new(0.235294, 0.784314, 0.784314)
  278. Settings.TextSize = 14
  279.  
  280. SetRemotes.Name = "SetRemotes"
  281. SetRemotes.Parent = BG
  282. SetRemotes.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  283. SetRemotes.BorderColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  284. SetRemotes.Position = UDim2.new(0, 270, 0, 80)
  285. SetRemotes.Size = UDim2.new(1, -280, 1, -140)
  286. SetRemotes.Visible = false
  287. SetRemotes.ZIndex = 2
  288. SetRemotes.BottomImage = "rbxassetid://148970562"
  289. SetRemotes.CanvasSize = UDim2.new(0, 0, 25, 0)
  290. SetRemotes.MidImage = "rbxassetid://148970562"
  291. SetRemotes.ScrollBarThickness = 5
  292. SetRemotes.TopImage = "rbxassetid://148970562"
  293.  
  294. Storage.Name = "Storage"
  295. Storage.Parent = RemoteSpy
  296. Storage.BackgroundColor3 = Color3.new(1, 1, 1)
  297. Storage.Size = UDim2.new(0, 100, 0, 100)
  298. Storage.Visible = false
  299.  
  300. RBTN.Name = "RBTN"
  301. RBTN.Parent = Storage
  302. RBTN.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  303. RBTN.BorderColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  304. RBTN.Position = UDim2.new(0, 10, 0, 10)
  305. RBTN.Size = UDim2.new(1, -20, 0, 20)
  306. RBTN.ZIndex = 3
  307. RBTN.Font = Enum.Font.SourceSansBold
  308. RBTN.FontSize = Enum.FontSize.Size14
  309. RBTN.Text = ""
  310. RBTN.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  311. RBTN.TextSize = 14
  312. RBTN.TextXAlignment = Enum.TextXAlignment.Left
  313.  
  314. Icon.Name = "Icon"
  315. Icon.Parent = RBTN
  316. Icon.BackgroundColor3 = Color3.new(1, 1, 1)
  317. Icon.BackgroundTransparency = 1
  318. Icon.Size = UDim2.new(0, 20, 0, 20)
  319. Icon.ZIndex = 4
  320. Icon.Image = "rbxassetid://413369506"
  321.  
  322. RemoteName.Name = "RemoteName"
  323. RemoteName.Parent = RBTN
  324. RemoteName.BackgroundColor3 = Color3.new(0.713726, 0.00392157, 0.298039)
  325. RemoteName.BorderSizePixel = 0
  326. RemoteName.Position = UDim2.new(0, 30, 0, 0)
  327. RemoteName.Size = UDim2.new(0, 140, 0, 20)
  328. RemoteName.ZIndex = 4
  329. RemoteName.Font = Enum.Font.SourceSansBold
  330. RemoteName.FontSize = Enum.FontSize.Size14
  331. RemoteName.Text = "10"
  332. RemoteName.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  333. RemoteName.TextSize = 14
  334.  
  335. ID.Name = "ID"
  336. ID.Parent = RBTN
  337. ID.BackgroundColor3 = Color3.new(0.458824, 0.00392157, 0.192157)
  338. ID.BorderSizePixel = 0
  339. ID.Position = UDim2.new(1, -50, 0, 0)
  340. ID.Size = UDim2.new(0, 50, 0, 20)
  341. ID.ZIndex = 4
  342. ID.Font = Enum.Font.SourceSansBold
  343. ID.FontSize = Enum.FontSize.Size14
  344. ID.Text = "10"
  345. ID.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  346. ID.TextSize = 14
  347.  
  348. SBTN.Name = "SBTN"
  349. SBTN.Parent = Storage
  350. SBTN.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  351. SBTN.BorderColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  352. SBTN.Position = UDim2.new(0, 10, 0, 10)
  353. SBTN.Size = UDim2.new(1, -20, 0, 20)
  354. SBTN.ZIndex = 3
  355. SBTN.Font = Enum.Font.SourceSansBold
  356. SBTN.FontSize = Enum.FontSize.Size14
  357. SBTN.Text = ""
  358. SBTN.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  359. SBTN.TextSize = 11
  360. SBTN.TextXAlignment = Enum.TextXAlignment.Left
  361.  
  362. Icon_2.Name = "Icon"
  363. Icon_2.Parent = SBTN
  364. Icon_2.BackgroundColor3 = Color3.new(1, 1, 1)
  365. Icon_2.BackgroundTransparency = 1
  366. Icon_2.Size = UDim2.new(0, 20, 0, 20)
  367. Icon_2.ZIndex = 4
  368. Icon_2.Image = "rbxassetid://413369506"
  369.  
  370. RemoteName_2.Name = "RemoteName"
  371. RemoteName_2.Parent = SBTN
  372. RemoteName_2.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  373. RemoteName_2.BorderSizePixel = 1
  374. RemoteName_2.BorderColor3 = Color3.fromRGB(62, 62, 62)
  375. RemoteName_2.Position = UDim2.new(0, 30, 0, 0)
  376. RemoteName_2.Size = UDim2.new(0, 140, 0, 20)
  377. RemoteName_2.ZIndex = 4
  378. RemoteName_2.Font = Enum.Font.SourceSansBold
  379. RemoteName_2.FontSize = Enum.FontSize.Size14
  380. RemoteName_2.Text = "SayMessageRequest"
  381. RemoteName_2.TextColor3 = Color3.fromRGB(200, 200, 200)
  382. RemoteName_2.TextSize = 11
  383.  
  384.  
  385. ScriptLine.Name = "ScriptLine"
  386. ScriptLine.Parent = Storage
  387. ScriptLine.BackgroundColor3 = Color3.new(1, 1, 1)
  388. ScriptLine.BackgroundTransparency = 1
  389. ScriptLine.Size = UDim2.new(1, 0, 0, 17)
  390. ScriptLine.ZIndex = 2
  391.  
  392. Line.Name = "Line"
  393. Line.Parent = ScriptLine
  394. Line.BackgroundColor3 = Color3.new(0.329412, 0, 0)
  395. Line.BackgroundTransparency = 1
  396. Line.BorderSizePixel = 0
  397. Line.Size = UDim2.new(0, 40, 1, 0)
  398. Line.ZIndex = 3
  399. Line.Font = Enum.Font.SourceSansBold
  400. Line.FontSize = Enum.FontSize.Size18
  401. Line.Text = ""
  402. Line.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  403. Line.TextSize = 17
  404.  
  405. SourceText.Name = "SourceText"
  406. SourceText.Parent = ScriptLine
  407. SourceText.BackgroundColor3 = Color3.new(1, 1, 1)
  408. SourceText.BackgroundTransparency = 1
  409. SourceText.Position = UDim2.new(0, 40, 0, 0)
  410. SourceText.Size = UDim2.new(1, -40, 1, 0)
  411. SourceText.ZIndex = 3
  412. SourceText.Font = Enum.Font.Code
  413. SourceText.FontSize = Enum.FontSize.Size18
  414. SourceText.Text = ""
  415. SourceText.TextColor3 = Color3.new(1, 1, 1)
  416. SourceText.TextSize = 17
  417. SourceText.TextXAlignment = Enum.TextXAlignment.Left
  418.  
  419. Tokens.Name = "Tokens"
  420. Tokens.Parent = ScriptLine
  421. Tokens.BackgroundColor3 = Color3.new(1, 1, 1)
  422. Tokens.BackgroundTransparency = 1
  423. Tokens.Position = UDim2.new(0, 40, 0, 0)
  424. Tokens.Size = UDim2.new(1, -40, 1, 0)
  425. Tokens.ZIndex = 3
  426. Tokens.Font = Enum.Font.Code
  427. Tokens.FontSize = Enum.FontSize.Size18
  428. Tokens.Text = ""
  429. Tokens.TextColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  430. Tokens.TextSize = 17
  431. Tokens.TextXAlignment = Enum.TextXAlignment.Left
  432.  
  433. Strings.Name = "Strings"
  434. Strings.Parent = ScriptLine
  435. Strings.BackgroundColor3 = Color3.new(1, 1, 1)
  436. Strings.BackgroundTransparency = 1
  437. Strings.Position = UDim2.new(0, 40, 0, 0)
  438. Strings.Size = UDim2.new(1, -40, 1, 0)
  439. Strings.ZIndex = 5
  440. Strings.Font = Enum.Font.Code
  441. Strings.FontSize = Enum.FontSize.Size18
  442. Strings.Text = ""
  443. Strings.TextColor3 = Color3.new(1, 0.615686, 0)
  444. Strings.TextSize = 17
  445. Strings.TextXAlignment = Enum.TextXAlignment.Left
  446.  
  447. Comments.Name = "Comments"
  448. Comments.Parent = ScriptLine
  449. Comments.BackgroundColor3 = Color3.new(1, 1, 1)
  450. Comments.BackgroundTransparency = 1
  451. Comments.Position = UDim2.new(0, 40, 0, 0)
  452. Comments.Size = UDim2.new(1, -40, 1, 0)
  453. Comments.ZIndex = 5
  454. Comments.Font = Enum.Font.Code
  455. Comments.FontSize = Enum.FontSize.Size18
  456. Comments.Text = ""
  457. Comments.TextColor3 = Color3.fromRGB(60, 200, 60)
  458. Comments.TextSize = 17
  459. Comments.TextXAlignment = Enum.TextXAlignment.Left
  460.  
  461. RemoteHighlight.Name = "RemoteHighlight"
  462. RemoteHighlight.Parent = ScriptLine
  463. RemoteHighlight.BackgroundColor3 = Color3.new(1, 1, 1)
  464. RemoteHighlight.BackgroundTransparency = 1
  465. RemoteHighlight.Position = UDim2.new(0, 40, 0, 0)
  466. RemoteHighlight.Size = UDim2.new(1, -40, 1, 0)
  467. RemoteHighlight.ZIndex = 3
  468. RemoteHighlight.Font = Enum.Font.Code
  469. RemoteHighlight.FontSize = Enum.FontSize.Size18
  470. RemoteHighlight.Text = ""
  471. RemoteHighlight.TextColor3 = Color3.fromRGB(0, 145, 255)
  472. RemoteHighlight.TextSize = 17
  473. RemoteHighlight.TextXAlignment = Enum.TextXAlignment.Left
  474.  
  475. Keywords.Name = "Keywords"
  476. Keywords.Parent = ScriptLine
  477. Keywords.BackgroundColor3 = Color3.new(1, 1, 1)
  478. Keywords.BackgroundTransparency = 1
  479. Keywords.Position = UDim2.new(0, 40, 0, 0)
  480. Keywords.Size = UDim2.new(1, -40, 1, 0)
  481. Keywords.ZIndex = 3
  482. Keywords.Font = Enum.Font.Code
  483. Keywords.FontSize = Enum.FontSize.Size18
  484. Keywords.Text = ""
  485. Keywords.TextColor3 = Color3.new(0.231373, 1, 0)
  486. Keywords.TextSize = 17
  487. Keywords.TextXAlignment = Enum.TextXAlignment.Left
  488.  
  489. Globals.Name = "Globals"
  490. Globals.Parent = ScriptLine
  491. Globals.BackgroundColor3 = Color3.new(1, 1, 1)
  492. Globals.BackgroundTransparency = 1
  493. Globals.Position = UDim2.new(0, 40, 0, 0)
  494. Globals.Size = UDim2.new(1, -40, 1, 0)
  495. Globals.ZIndex = 3
  496. Globals.Font = Enum.Font.Code
  497. Globals.FontSize = Enum.FontSize.Size18
  498. Globals.Text = ""
  499. Globals.TextColor3 = Color3.new(1, 0, 0)
  500. Globals.TextSize = 17
  501. Globals.TextXAlignment = Enum.TextXAlignment.Left
  502.  
  503. Enabled.Name = "Enabled"
  504. Enabled.Parent = SBTN
  505. Enabled.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  506. Enabled.BorderSizePixel = 1
  507. Enabled.BorderColor3 = Color3.fromRGB(30, 100, 30)
  508. Enabled.Position = UDim2.new(0, 210, 0, 0)
  509. Enabled.Size = UDim2.new(1, -210, 1, 0)
  510. Enabled.ZIndex = 4
  511. Enabled.Font = Enum.Font.SourceSansBold
  512. Enabled.FontSize = Enum.FontSize.Size14
  513. Enabled.Text = "Enabled"
  514. Enabled.TextColor3 = Color3.fromRGB(60, 200, 60)
  515. Enabled.TextSize = 14
  516.  
  517. FullScreen.Name = "FullScreen"
  518. FullScreen.Parent = Ribbon
  519. FullScreen.BackgroundColor3 = Color3.new(1, 0, 0)
  520. FullScreen.BorderSizePixel = 0
  521. FullScreen.Position = UDim2.new(1, -90, 0, 0)
  522. FullScreen.Size = UDim2.new(0, 40, 0, 20)
  523. FullScreen.ZIndex = 3
  524. FullScreen.Font = Enum.Font.SourceSansBold
  525. FullScreen.FontSize = Enum.FontSize.Size14
  526. FullScreen.Text = "[~]"
  527. FullScreen.TextColor3 = Color3.new(1, 1, 1)
  528. FullScreen.TextSize = 14
  529.  
  530. SetRemotesTab.Name = "SetRemotesTab"
  531. SetRemotesTab.Parent = BG
  532. SetRemotesTab.Visible = false
  533. SetRemotesTab.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  534. SetRemotesTab.BorderColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  535. SetRemotesTab.ClipsDescendants = true
  536. SetRemotesTab.Position = UDim2.new(0, 270, 1, -50)
  537. SetRemotesTab.Size = UDim2.new(1, -280, 0, 40)
  538. SetRemotesTab.ZIndex = 2
  539.  
  540. FilterF.Name = "FilterF"
  541. FilterF.Parent = SetRemotesTab
  542. FilterF.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  543. FilterF.BorderColor3 = Color3.new(0.392157, 0.117647, 0.117647)
  544. FilterF.Position = UDim2.new(0, 120, 0.5, -10)
  545. FilterF.Size = UDim2.new(0, 120, 0, 20)
  546. FilterF.ZIndex = 3
  547. FilterF.Font = Enum.Font.SourceSansBold
  548. FilterF.FontSize = Enum.FontSize.Size14
  549. FilterF.Text = "FILTER FUNCTIONS"
  550. FilterF.TextColor3 = Color3.new(0.784314, 0.235294, 0.235294)
  551. FilterF.TextSize = 14
  552.  
  553. FilterE.Name = "FilterE"
  554. FilterE.Parent = SetRemotesTab
  555. FilterE.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  556. FilterE.BorderColor3 = Color3.new(0.392157, 0.117647, 0.117647)
  557. FilterE.Position = UDim2.new(0, 10, 0.5, -10)
  558. FilterE.Size = UDim2.new(0, 100, 0, 20)
  559. FilterE.ZIndex = 3
  560. FilterE.Font = Enum.Font.SourceSansBold
  561. FilterE.FontSize = Enum.FontSize.Size14
  562. FilterE.Text = "FILTER EVENTS"
  563. FilterE.TextColor3 = Color3.new(0.784314, 0.235294, 0.235294)
  564. FilterE.TextSize = 14
  565.  
  566. Search.Name = "Search"
  567. Search.Parent = SetRemotesTab
  568. Search.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  569. Search.BorderColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  570. Search.Position = UDim2.new(0, 250, 0.5, -10)
  571. Search.Selectable = true
  572. Search.Size = UDim2.new(1, -260, 0, 20)
  573. Search.ZIndex = 3
  574. Search.Font = Enum.Font.SourceSansBold
  575. Search.FontSize = Enum.FontSize.Size14
  576. Search.Text = "[SEARCH]"
  577. Search.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  578. Search.TextSize = 14
  579.  
  580. lvl6Output.Name = "lvl6Output"
  581. lvl6Output.Parent = lvl6Frame
  582. lvl6Output.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  583. lvl6Output.BorderColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  584. lvl6Output.Position = UDim2.new(0, 0, 1, -110)
  585. lvl6Output.Size = UDim2.new(1, 0, 0, 110)
  586. lvl6Output.ZIndex = 3
  587. lvl6Output.CanvasSize = UDim2.new(0, 0, 15, 0)
  588. lvl6Output.BottomImage = "rbxassetid://148970562"
  589. lvl6Output.MidImage = "rbxassetid://148970562"
  590. lvl6Output.ScrollBarThickness = 5
  591. lvl6Output.TopImage = "rbxassetid://148970562"
  592.  
  593. lvl6Source.Name = "lvl6Source"
  594. lvl6Source.Parent = lvl6Frame
  595. lvl6Source.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  596. lvl6Source.BorderColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  597. lvl6Source.Position = UDim2.new(0, 0, 0, 30)
  598. lvl6Source.Size = UDim2.new(1, 0, 1, -160)
  599. lvl6Source.ZIndex = 3
  600. lvl6Source.BottomImage = "rbxassetid://148970562"
  601. lvl6Source.CanvasSize = UDim2.new(0, 0, 20, 0)
  602. lvl6Source.MidImage = "rbxassetid://148970562"
  603. lvl6Source.ScrollBarThickness = 5
  604. lvl6Source.TopImage = "rbxassetid://148970562"
  605.  
  606. Source_.Name = "Source_"
  607. Source_.Parent = lvl6Source
  608. Source_.BackgroundColor3 = Color3.new(1, 1, 1)
  609. Source_.BackgroundTransparency = 1
  610. Source_.Size = UDim2.new(1, 0, 1, 0)
  611. Source_.Position = UDim2.new(0, 30, 0, 0)
  612. Source_.ZIndex = 4
  613. Source_.ClearTextOnFocus = false
  614. Source_.MultiLine = true
  615. Source_.Font = Enum.Font.Code
  616. Source_.FontSize = Enum.FontSize.Size18
  617. Source_.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  618. Source_.TextSize = 17
  619. Source_.Text = "print(\"Welcome to R2S script editor!\")"
  620. Source_.TextXAlignment = Enum.TextXAlignment.Left
  621. Source_.TextYAlignment = Enum.TextYAlignment.Top
  622.  
  623. Comments_.Name = "Comments_"
  624. Comments_.Parent = Source_
  625. Comments_.BackgroundColor3 = Color3.new(1, 1, 1)
  626. Comments_.BackgroundTransparency = 1
  627. Comments_.Size = UDim2.new(1, 0, 1, 0)
  628. Comments_.ZIndex = 5
  629. Comments_.Font = Enum.Font.Code
  630. Comments_.FontSize = Enum.FontSize.Size18
  631. Comments_.Text = ""
  632. Comments_.TextColor3 = Color3.new(0.235294, 0.784314, 0.235294)
  633. Comments_.TextSize = 17
  634. Comments_.TextXAlignment = Enum.TextXAlignment.Left
  635. Comments_.TextYAlignment = Enum.TextYAlignment.Top
  636.  
  637. Globals_.Name = "Globals_"
  638. Globals_.Parent = Source_
  639. Globals_.BackgroundColor3 = Color3.new(1, 1, 1)
  640. Globals_.BackgroundTransparency = 1
  641. Globals_.Size = UDim2.new(1, 0, 1, 0)
  642. Globals_.ZIndex = 5
  643. Globals_.Font = Enum.Font.Code
  644. Globals_.FontSize = Enum.FontSize.Size18
  645. Globals_.Text = ""
  646. Globals_.TextColor3 = Color3.new(1, 0, 0)
  647. Globals_.TextSize = 17
  648. Globals_.TextXAlignment = Enum.TextXAlignment.Left
  649. Globals_.TextYAlignment = Enum.TextYAlignment.Top
  650.  
  651. Keywords_.Name = "Keywords_"
  652. Keywords_.Parent = Source_
  653. Keywords_.BackgroundColor3 = Color3.new(1, 1, 1)
  654. Keywords_.BackgroundTransparency = 1
  655. Keywords_.Size = UDim2.new(1, 0, 1, 0)
  656. Keywords_.ZIndex = 5
  657. Keywords_.Font = Enum.Font.Code
  658. Keywords_.FontSize = Enum.FontSize.Size18
  659. Keywords_.Text = ""
  660. Keywords_.TextColor3 = Color3.new(0.231373, 1, 0)
  661. Keywords_.TextSize = 17
  662. Keywords_.TextXAlignment = Enum.TextXAlignment.Left
  663. Keywords_.TextYAlignment = Enum.TextYAlignment.Top
  664.  
  665. RemoteHighlight_.Name = "RemoteHighlight_"
  666. RemoteHighlight_.Parent = Source_
  667. RemoteHighlight_.BackgroundColor3 = Color3.new(1, 1, 1)
  668. RemoteHighlight_.BackgroundTransparency = 1
  669. RemoteHighlight_.Size = UDim2.new(1, 0, 1, 0)
  670. RemoteHighlight_.ZIndex = 5
  671. RemoteHighlight_.Font = Enum.Font.Code
  672. RemoteHighlight_.FontSize = Enum.FontSize.Size18
  673. RemoteHighlight_.Text = ""
  674. RemoteHighlight_.TextColor3 = Color3.new(0, 0.568627, 1)
  675. RemoteHighlight_.TextSize = 17
  676. RemoteHighlight_.TextXAlignment = Enum.TextXAlignment.Left
  677. RemoteHighlight_.TextYAlignment = Enum.TextYAlignment.Top
  678.  
  679. Strings_.Name = "Strings_"
  680. Strings_.Parent = Source_
  681. Strings_.BackgroundColor3 = Color3.new(1, 1, 1)
  682. Strings_.BackgroundTransparency = 1
  683. Strings_.Size = UDim2.new(1, 0, 1, 0)
  684. Strings_.ZIndex = 5
  685. Strings_.Font = Enum.Font.Code
  686. Strings_.FontSize = Enum.FontSize.Size18
  687. Strings_.Text = ""
  688. Strings_.TextColor3 = Color3.new(1, 0.615686, 0)
  689. Strings_.TextSize = 17
  690. Strings_.TextXAlignment = Enum.TextXAlignment.Left
  691. Strings_.TextYAlignment = Enum.TextYAlignment.Top
  692.  
  693. Tokens_.Name = "Tokens_"
  694. Tokens_.Parent = Source_
  695. Tokens_.BackgroundColor3 = Color3.new(1, 1, 1)
  696. Tokens_.BackgroundTransparency = 1
  697. Tokens_.Size = UDim2.new(1, 0, 1, 0)
  698. Tokens_.ZIndex = 5
  699. Tokens_.Font = Enum.Font.Code
  700. Tokens_.FontSize = Enum.FontSize.Size18
  701. Tokens_.Text = ""
  702. Tokens_.TextColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  703. Tokens_.TextSize = 17
  704. Tokens_.TextXAlignment = Enum.TextXAlignment.Left
  705. Tokens_.TextYAlignment = Enum.TextYAlignment.Top
  706.  
  707. ExecuteScript.Name = "ExecuteScript"
  708. ExecuteScript.Parent = lvl6Frame
  709. ExecuteScript.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  710. ExecuteScript.BorderColor3 = Color3.new(0.117647, 0.392157, 0.117647)
  711. ExecuteScript.Size = UDim2.new(1, -700, 0, 20)
  712. ExecuteScript.ZIndex = 3
  713. ExecuteScript.Font = Enum.Font.SourceSansBold
  714. ExecuteScript.FontSize = Enum.FontSize.Size14
  715. ExecuteScript.Text = "EXECUTE"
  716. ExecuteScript.TextColor3 = Color3.new(0.235294, 0.784314, 0.235294)
  717. ExecuteScript.TextSize = 14
  718.  
  719. lvl6.Name = "lvl6"
  720. lvl6.Parent = ButtonsFrame
  721. lvl6.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  722. lvl6.BorderColor3 = Color3.new(0.384314, 0.384314, 0.384314)
  723. lvl6.Position = UDim2.new(0, 940, 0.5, -10)
  724. lvl6.Size = UDim2.new(0, 100, 0, 20)
  725. lvl6.ZIndex = 3
  726. lvl6.Font = Enum.Font.SourceSansBold
  727. lvl6.FontSize = Enum.FontSize.Size14
  728. lvl6.Text = "LVL6 "
  729. lvl6.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  730. lvl6.TextSize = 14
  731.  
  732. lvl6Frame.Name = "lvl6Frame"
  733. lvl6Frame.Parent = BG
  734. lvl6Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  735. lvl6Frame.BackgroundTransparency = 1
  736. lvl6Frame.BorderColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  737. lvl6Frame.Position = UDim2.new(0, 270, 0, 80)
  738. lvl6Frame.Size = UDim2.new(1, -280, 1, -90)
  739. lvl6Frame.ZIndex = 2
  740. lvl6Frame.Visible = false
  741.  
  742. Resize.Name = "Resize"
  743. Resize.Parent = lvl6Frame
  744. Resize.BackgroundColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  745. Resize.BorderSizePixel = 0
  746. Resize.Draggable = true
  747. Resize.Position = UDim2.new(0.5, -50, 1, -130)
  748. Resize.Size = UDim2.new(0, 100, 0, 10)
  749. Resize.ZIndex = 3
  750. Resize.Font = Enum.Font.SourceSans
  751. Resize.FontSize = Enum.FontSize.Size14
  752. Resize.Text = ""
  753. Resize.TextSize = 14
  754.  
  755. ClearScript.Name = "ClearScript"
  756. ClearScript.Parent = lvl6Frame
  757. ClearScript.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  758. ClearScript.BorderColor3 = Color3.new(0.392157, 0.117647, 0.117647)
  759. ClearScript.Position = UDim2.new(1, -280, 0, 0)
  760. ClearScript.Size = UDim2.new(0, 280, 0, 20)
  761. ClearScript.ZIndex = 3
  762. ClearScript.Font = Enum.Font.SourceSansBold
  763. ClearScript.FontSize = Enum.FontSize.Size14
  764. ClearScript.Text = "CLEAR"
  765. ClearScript.TextColor3 = Color3.new(0.784314, 0.235294, 0.235294)
  766. ClearScript.TextSize = 14
  767.  
  768. ClearOutput.Name = "ClearOutput"
  769. ClearOutput.Parent = lvl6Frame
  770. ClearOutput.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  771. ClearOutput.BorderColor3 = Color3.new(0.392157, 0.117647, 0.117647)
  772. ClearOutput.Position = UDim2.new(1, -680, 0, 0)
  773. ClearOutput.Size = UDim2.new(0, 390, 0, 20)
  774. ClearOutput.ZIndex = 3
  775. ClearOutput.Font = Enum.Font.SourceSansBold
  776. ClearOutput.FontSize = Enum.FontSize.Size14
  777. ClearOutput.Text = "CLEAR OUTPUT"
  778. ClearOutput.TextColor3 = Color3.new(0.784314, 0.235294, 0.235294)
  779. ClearOutput.TextSize = 14
  780.  
  781. Label.Name = "Label"
  782. Label.Parent = Storage
  783. Label.BackgroundColor3 = Color3.new(1, 1, 1)
  784. Label.BackgroundTransparency = 1
  785. Label.Size = UDim2.new(1, 0, 0, 17)
  786. Label.ZIndex = 4
  787. Label.Font = Enum.Font.Code
  788. Label.FontSize = Enum.FontSize.Size14
  789. Label.TextColor3 = Color3.new(1, 1, 1)
  790. Label.TextSize = 14
  791. Label.TextXAlignment = Enum.TextXAlignment.Left
  792.  
  793. Lines.Name = "Lines"
  794. Lines.Parent = lvl6Source
  795. Lines.BackgroundColor3 = Color3.new(1, 1, 1)
  796. Lines.BackgroundTransparency = 1
  797. Lines.Size = UDim2.new(0, 30, 1, 0)
  798. Lines.ZIndex = 4
  799. Lines.Font = Enum.Font.Code
  800. Lines.FontSize = Enum.FontSize.Size18
  801. Lines.Text = "1"
  802. Lines.TextColor3 = Color3.new(1, 1, 1)
  803. Lines.TextSize = 17
  804. Lines.TextYAlignment = Enum.TextYAlignment.Top
  805.  
  806. -- FrontEnd-Backend // UI Functions
  807.  
  808. local HasSpecial = function(string)
  809. return (string:match("%c") or string:match("%s") or string:match("%p")) ~= nil
  810. end
  811.  
  812. local GetPath = function(Instance)
  813. local Obj = Instance
  814. local string = {}
  815. local temp = {}
  816. local error = false
  817.  
  818. while Obj ~= game do
  819. if Obj == nil then
  820. error = true
  821. break
  822. end
  823. table.insert(temp, Obj.Parent == game and Obj.ClassName or tostring(Obj))
  824. Obj = Obj.Parent
  825. end
  826.  
  827. table.insert(string, "game:GetService(\"" .. temp[#temp] .. "\")")
  828.  
  829. for i = #temp - 1, 1, -1 do
  830. table.insert(string, HasSpecial(temp[i]) and "[\"" .. temp[i] .. "\"]" or "." .. temp[i])
  831. end
  832.  
  833. return (error and "nil -- Path contained an invalid instance" or table.concat(string, ""))
  834. end
  835.  
  836. local GetType = function(Instance)
  837. local Types =
  838. {
  839. EnumItem = function()
  840. return "Enum." .. tostring(Instance.EnumType) .. "." .. tostring(Instance.Name)
  841. end,
  842. Instance = function()
  843. return GetPath(Instance)
  844. end,
  845. CFrame = function()
  846. return "CFrame.new(" .. tostring(Instance) .. ")"
  847. end,
  848. Vector3 = function()
  849. return "Vector3.new(" .. tostring(Instance) .. ")"
  850. end,
  851. BrickColor = function()
  852. return "BrickColor.new(\"" .. tostring(Instance) .. "\")"
  853. end,
  854. Color3 = function()
  855. return "Color3.new(" .. tostring(Instance) .. ")"
  856. end,
  857. string = function()
  858. local S = tostring(Instance)
  859. return "\"" .. (encrypt_string and S:gsub(".", function(c) return "\\" .. c:byte() end) or S) .. "\""
  860. end,
  861. Ray = function()
  862. return "Ray.new(Vector3.new(" .. tostring(Instance.Origin) .. "), Vector3.new(" .. tostring(Instance.Direction) .. "))"
  863. end
  864. }
  865.  
  866. return Types[typeof(Instance)] ~= nil and Types[typeof(Instance)]() or tostring(Instance)
  867. end
  868.  
  869. local size_frame = function(frame, UDim)
  870. frame:TweenSize(UDim, "Out", "Quint", 0.3)
  871. end
  872.  
  873. local pos_frame = function(frame, UDim)
  874. frame:TweenPosition(UDim, "Out", "Quint", 0.3)
  875. end
  876.  
  877. local size_pos_frame = function(frame, UDim, UDim2)
  878. frame:TweenSizeAndPosition(UDim, UDim2, "Out", "Quint", 0.3)
  879. end
  880.  
  881. local resize_onchange = function(type)
  882. if type == "Position" then
  883. Resize.Position = UDim2.new(0.5, -50, 1, Resize.Position.Y.Offset)
  884. lvl6Source.Size = UDim2.new(1, 0, 1, Resize.Position.Y.Offset - 30)
  885. lvl6Output.Position = UDim2.new(0, 0, 1, Resize.Position.Y.Offset + 20)
  886. lvl6Output.Size = UDim2.new(1, 0, 0, 110 + (-130 - Resize.Position.Y.Offset))
  887. if Resize.Position.Y.Offset <= -420 then
  888. Resize.Position = UDim2.new(0.5, -50, 1, -420)
  889. elseif Resize.Position.Y.Offset >= -40 then
  890. Resize.Position = UDim2.new(0.5, -50, 1, -40)
  891. end
  892. end
  893. end
  894.  
  895. local clear_lvl6 = function()
  896. Source_.Text = ""
  897. end
  898.  
  899. local onchange_lvl6source = function(type)
  900. if type == "Text" then
  901. Source_.Comments_.Text = Comments(Source_.Text)
  902. end
  903. end
  904.  
  905. local hide = function()
  906. size_frame(BG, UDim2.new(0, 300, 0, 20))
  907. pos_frame(Title, UDim2.new(0, 0, 0, 0))
  908. pos_frame(Remotes, UDim2.new(0, 10, 0, 100))
  909. pos_frame(Source, UDim2.new(0, 270, 0, 100))
  910. BG.Draggable = true
  911. SetRemotes.Visible = false
  912. SetRemotesTab.Visible = false
  913. lvl6Frame.Visible = false
  914. Source.Visible = true
  915.  
  916. return "[]"
  917. end
  918.  
  919. local show = function()
  920. size_frame(BG, UDim2.new(1, -300, 1, -200))
  921. pos_frame(BG, UDim2.new(0.1, 0, 0.1, 0))
  922. pos_frame(Title, UDim2.new(0.5, -100, 0, 0))
  923. pos_frame(Remotes, UDim2.new(0, 10, 0, 80))
  924. pos_frame(Source, UDim2.new(0, 270, 0, 80))
  925. BG.Draggable = false
  926.  
  927. return "_"
  928. end
  929.  
  930. local onclick_lvl6 = function()
  931. lvl6Frame.Visible = not lvl6Frame.Visible
  932. SetRemotes.Visible = not lvl6Frame.Visible
  933. SetRemotesTab.Visible = not lvl6Frame.Visible
  934. Source.Visible = not lvl6Frame.Visible
  935. end
  936.  
  937. local onclick_hide = function()
  938. Hide.Text = Hide.Text == "_" and hide() or show()
  939. end
  940.  
  941. local onclick_settings = function()
  942. Source.Visible = not Source.Visible
  943. SetRemotes.Visible = not Source.Visible
  944. SetRemotesTab.Visible = not Source.Visible
  945. lvl6Frame.Visible = false
  946. end
  947.  
  948. local onclick_remotespy = function()
  949. spy_enabled = not spy_enabled
  950. EnableSpy.TextColor3 = EnableSpy.TextColor3 == Color3.fromRGB(60, 200, 60) and Color3.fromRGB(200, 60, 60) or Color3.fromRGB(60, 200, 60)
  951. EnableSpy.BorderColor3 = EnableSpy.TextColor3 == Color3.fromRGB(200, 60, 60) and Color3.fromRGB(100, 30, 30) or Color3.fromRGB(30, 100, 30)
  952. end
  953.  
  954. local onclick_cryptstring = function()
  955. encrypt_string = not encrypt_string
  956. CryptStrings.TextColor3 = CryptStrings.TextColor3 == Color3.fromRGB(60, 200, 60) and Color3.fromRGB(200, 60, 60) or Color3.fromRGB(60, 200, 60)
  957. CryptStrings.BorderColor3 = CryptStrings.TextColor3 == Color3.fromRGB(200, 60, 60) and Color3.fromRGB(100, 30, 30) or Color3.fromRGB(30, 100, 30)
  958. end
  959.  
  960. local clear_logs = function()
  961. Remotes:ClearAllChildren()
  962. remotes_fired = 0
  963. Total.Text = "0"
  964. end
  965.  
  966. local filter_events = function()
  967. local n = 0
  968. for i, v in pairs(SetRemotes:GetChildren()) do
  969. v.Visible = not (FilterE.TextColor3 == Color3.fromRGB(60, 200, 60) and v.Icon.Image == "rbxassetid://413369623")
  970. if v.Visible == true then
  971. n = n + 1
  972. v.Position = UDim2.new(0, 10, 0, -20 + n * 30)
  973. else
  974. v.Position = UDim2.new(0, 10, 0, -20 + i * 30)
  975. end
  976. end
  977. end
  978.  
  979. local filter_functions = function()
  980. local n = 0
  981. for i, v in pairs(SetRemotes:GetChildren()) do
  982. v.Visible = not (FilterF.TextColor3 == Color3.fromRGB(60, 200, 60) and v.Icon.Image == "rbxassetid://413369506")
  983. if v.Visible == true then
  984. n = n + 1
  985. v.Position = UDim2.new(0, 10, 0, -20 + n * 30)
  986. else
  987. v.Position = UDim2.new(0, 10, 0, -20 + i * 30)
  988. end
  989. end
  990. end
  991.  
  992. local onclick_fevents = function()
  993. FilterE.TextColor3 = FilterE.TextColor3 == Color3.fromRGB(60, 200, 60) and Color3.fromRGB(200, 60, 60) or Color3.fromRGB(60, 200, 60)
  994. FilterE.BorderColor3 = FilterE.TextColor3 == Color3.fromRGB(200, 60, 60) and Color3.fromRGB(100, 30, 30) or Color3.fromRGB(30, 100, 30)
  995. filter_events()
  996. end
  997.  
  998. local onclick_ffunctions = function()
  999. FilterF.TextColor3 = FilterF.TextColor3 == Color3.fromRGB(60, 200, 60) and Color3.fromRGB(200, 60, 60) or Color3.fromRGB(60, 200, 60)
  1000. FilterF.BorderColor3 = FilterF.TextColor3 == Color3.fromRGB(200, 60, 60) and Color3.fromRGB(100, 30, 30) or Color3.fromRGB(30, 100, 30)
  1001. filter_functions()
  1002. end
  1003.  
  1004. local Highlight = function(string, keywords)
  1005. local K = {}
  1006. local S = string
  1007. local Token =
  1008. {
  1009. ["="] = true,
  1010. ["."] = true,
  1011. [","] = true,
  1012. ["("] = true,
  1013. [")"] = true,
  1014. ["["] = true,
  1015. ["]"] = true,
  1016. ["{"] = true,
  1017. ["}"] = true,
  1018. [":"] = true,
  1019. ["*"] = true,
  1020. ["/"] = true,
  1021. ["+"] = true,
  1022. ["-"] = true,
  1023. ["%"] = true,
  1024. [";"] = true,
  1025. ["~"] = true
  1026. }
  1027. for i, v in pairs(keywords) do
  1028. K[v] = true
  1029. end
  1030. S = S:gsub(".", function(c)
  1031. if Token[c] ~= nil then
  1032. return "\32"
  1033. else
  1034. return c
  1035. end
  1036. end)
  1037. S = S:gsub("%S+", function(c)
  1038. if K[c] ~= nil then
  1039. return c
  1040. else
  1041. return (" "):rep(#c)
  1042. end
  1043. end)
  1044.  
  1045. return S
  1046. end
  1047.  
  1048. local hTokens = function(string)
  1049. local Token =
  1050. {
  1051. ["="] = true,
  1052. ["."] = true,
  1053. [","] = true,
  1054. ["("] = true,
  1055. [")"] = true,
  1056. ["["] = true,
  1057. ["]"] = true,
  1058. ["{"] = true,
  1059. ["}"] = true,
  1060. [":"] = true,
  1061. ["*"] = true,
  1062. ["/"] = true,
  1063. ["+"] = true,
  1064. ["-"] = true,
  1065. ["%"] = true,
  1066. [";"] = true,
  1067. ["~"] = true
  1068. }
  1069. local A = ""
  1070. string:gsub(".", function(c)
  1071. if Token[c] ~= nil then
  1072. A = A .. c
  1073. elseif c == "\n" then
  1074. A = A .. "\n"
  1075. elseif c == "\t" then
  1076. A = A .. "\t"
  1077. else
  1078. A = A .. "\32"
  1079. end
  1080. end)
  1081.  
  1082. return A
  1083. end
  1084.  
  1085.  
  1086. local strings = function(string)
  1087. local highlight = ""
  1088. local quote = false
  1089. string:gsub(".", function(c)
  1090. if quote == false and c == "\"" then
  1091. quote = true
  1092. elseif quote == true and c == "\"" then
  1093. quote = false
  1094. end
  1095. if quote == false and c == "\"" then
  1096. highlight = highlight .. "\""
  1097. elseif c == "\n" then
  1098. highlight = highlight .. "\n"
  1099. elseif c == "\t" then
  1100. highlight = highlight .. "\t"
  1101. elseif quote == true then
  1102. highlight = highlight .. c
  1103. elseif quote == false then
  1104. highlight = highlight .. "\32"
  1105. end
  1106. end)
  1107.  
  1108. return highlight
  1109. end
  1110.  
  1111. local comments = function(string)
  1112. local ret = ""
  1113. string:gsub("[^\r\n]+", function(c)
  1114. local comm = false
  1115. local i = 0
  1116. c:gsub(".", function(n)
  1117. i = i + 1
  1118. if c:sub(i, i + 1) == "--" then
  1119. comm = true
  1120. end
  1121. if comm == true then
  1122. ret = ret .. n
  1123. else
  1124. ret = ret .. "\32"
  1125. end
  1126. end)
  1127. ret = ret
  1128. end)
  1129.  
  1130. return ret
  1131. end
  1132.  
  1133. local copy_source = function()
  1134. local script = ""
  1135. local copy
  1136. for i, v in pairs(Source:GetChildren()) do
  1137. script = script .. v.SourceText.Text .. "\n"
  1138. end
  1139. if Clipboard ~= nil then
  1140. copy = Clipboard.set
  1141. elseif Synapse ~= nil then
  1142. copy = function(str)
  1143. Synapse:Copy(str)
  1144. end
  1145. elseif setclipboard ~= nil then
  1146. copy = setclipboard
  1147. end
  1148. copy(script)
  1149. end
  1150.  
  1151. local onclick_fullscreen = function()
  1152. size_pos_frame(BG, UDim2.new(1, 0, 1, 40), UDim2.new(0, 0, 0, -40))
  1153. BG.Draggable = false
  1154. end
  1155.  
  1156. local filter_remotes = function(type)
  1157. local n = 0
  1158. if type == "Text" then
  1159. for i, v in pairs(SetRemotes:GetChildren()) do
  1160. if v.Name:lower():match(Search.Text:lower()) and string ~= "" then
  1161. v.Visible = true
  1162. n = n + 1
  1163. else
  1164. v.Visible = false
  1165. end
  1166. if v.Visible == true then
  1167. v.Position = UDim2.new(0, 10, 0, -20 + n * 30)
  1168. else
  1169. v.Position = UDim2.new(0, 10, 0, -20 + i * 30)
  1170. end
  1171. end
  1172. end
  1173. end
  1174.  
  1175. local fix = function(string)
  1176. if string == "/e fix" then
  1177. show()
  1178. wait(0.3)
  1179. pos_frame(BG, UDim2.new(0.1, 0, 0.1, 0))
  1180. end
  1181. end
  1182.  
  1183. local highlight_source = function(type)
  1184. if type == "Text" then
  1185. Source_.Text = Source_.Text:gsub("\13", "")
  1186. Source_.Text = Source_.Text:gsub("\t", " ")
  1187. local s = Source_.Text
  1188. Source_.Keywords_.Text = Highlight(s, lua_keywords)
  1189. Source_.Globals_.Text = Highlight(s, global_env)
  1190. Source_.RemoteHighlight_.Text = Highlight(s, {"FireServer", "fireServer", "InvokeServer", "invokeServer"})
  1191. Source_.Strings_.Text = strings(s)
  1192. Source_.Tokens_.Text = hTokens(s)
  1193. local lin = 1
  1194. s:gsub("\n", function()
  1195. lin = lin + 1
  1196. end)
  1197. Lines.Text = ""
  1198. for i = 1, lin do
  1199. Lines.Text = Lines.Text .. i .. "\n"
  1200. end
  1201. end
  1202. end
  1203.  
  1204. highlight_source("Text")
  1205.  
  1206. local format_warn_time = function()
  1207. local d = os.date("*t")
  1208. local tick = tostring(tick())
  1209. return d.hour .. ":" .. (d.min < 10 and "0" .. d.min or d.min) .. ":" .. (d.sec < 10 and "0" .. d.sec or d.sec) .. "." .. tick:sub(-3)
  1210. end
  1211.  
  1212. local log_output = function(string, type, color)
  1213. local out = Label:Clone()
  1214. out.Text = (type == true and string:gsub("\t", " ") or format_warn_time() .. " - " .. string:gsub("\t", " "))
  1215. out.TextColor3 = (color == nil and Color3.new(1, 1, 1) or color)
  1216. out.Parent = lvl6Output
  1217. out.Position = UDim2.new(0, 0, 0, -17 + #lvl6Output:GetChildren() * 17)
  1218. end
  1219.  
  1220. local output_format = function(...)
  1221. local string = ""
  1222. for i, v in pairs{...} do
  1223. string = string .. tostring(v) .. " "
  1224. end
  1225.  
  1226. return string
  1227. end
  1228.  
  1229. local execute_lvl6 = function()
  1230. local env =
  1231. {
  1232. print = function(...)
  1233. output_format(...):gsub("[^\r\n]+", function(line)
  1234. log_output(line, true)
  1235. end)
  1236. end,
  1237. warn = function(...)
  1238. output_format(...):gsub("[^\r\n]+", function(line)
  1239. log_output(line, false, Color3.fromRGB(255, 155, 0))
  1240. end)
  1241. end
  1242. }
  1243. local func = loadstring(Source_.Text)
  1244. assert(func, "Syntax error . . . Check script!")
  1245. spawn(setfenv(func, setmetatable(env, {__index = getfenv()})))
  1246. end
  1247.  
  1248. local clear_output = function()
  1249. lvl6Output:ClearAllChildren()
  1250. end
  1251.  
  1252. local context_error = function(error, trace)
  1253. error:gsub("[^\r\n]+", function(line)
  1254. log_output(line, false, Color3.new(1, 0, 0))
  1255. end)
  1256. trace:gsub("[^\r\n]+", function(line)
  1257. log_output(line, true, Color3.fromRGB(0, 100, 255))
  1258. end)
  1259. end
  1260.  
  1261. -- FrontEnd-Connections // UI Events
  1262.  
  1263. ClearOutput.MouseButton1Down:Connect(clear_output)
  1264. ExecuteScript.MouseButton1Down:Connect(execute_lvl6)
  1265. ClearScript.MouseButton1Down:Connect(clear_lvl6)
  1266. Source_.Changed:Connect(highlight_source)
  1267. Hide.MouseButton1Down:Connect(onclick_hide)
  1268. lvl6Source.Changed:Connect(onchange_lvl6source)
  1269. Resize.Changed:Connect(resize_onchange)
  1270. lvl6.MouseButton1Down:Connect(onclick_lvl6)
  1271. Settings.MouseButton1Down:Connect(onclick_settings)
  1272. ClearList.MouseButton1Down:Connect(clear_logs)
  1273. EnableSpy.MouseButton1Down:Connect(onclick_remotespy)
  1274. ToClipboard.MouseButton1Down:Connect(copy_source)
  1275. CryptStrings.MouseButton1Down:Connect(onclick_cryptstring)
  1276. FullScreen.MouseButton1Down:Connect(onclick_fullscreen)
  1277. FilterE.MouseButton1Down:Connect(onclick_fevents)
  1278. FilterF.MouseButton1Down:Connect(onclick_ffunctions)
  1279. Search.Changed:Connect(filter_remotes)
  1280. game:GetService("Players").LocalPlayer.Chatted:Connect(fix)
  1281. game:GetService("ScriptContext").Error:Connect(context_error)
  1282.  
  1283. -- Recursive Remotefill // UI-Backend
  1284.  
  1285. Table_TS = function(T)
  1286. local M = {}
  1287. for i, v in pairs(T) do
  1288. local I = "\n\t" .. (type(i) == "number" and "[" .. i .. "] = " or "[\"" .. i .. "\"] = ")
  1289. table.insert(M, I .. (type(v) == "table" and Table_TS(v) or GetType(v)))
  1290. end
  1291.  
  1292. return "\n{" .. table.concat(M, ", ") .. "\n}"
  1293. end
  1294.  
  1295. function fill(base)
  1296. for i, v in pairs(base:GetChildren()) do
  1297. if v.ClassName:match("Remote") and v.Name ~= "CharacterSoundEvent" then
  1298. local B = SBTN:Clone()
  1299.  
  1300. B.Parent = SetRemotes
  1301. B.Icon.Image = (v.ClassName == "RemoteEvent" and "rbxassetid://413369506" or "rbxassetid://413369623")
  1302. B.RemoteName.Text = v.Name
  1303. B.Name = v.Name
  1304. B.Position = UDim2.new(0, 10, 0, -20 + #SetRemotes:GetChildren() * 30)
  1305. B.MouseButton1Down:Connect(function()
  1306. B.Enabled.Text = B.Enabled.Text == "Enabled" and "Disabled" or "Enabled"
  1307. B.Enabled.TextColor3 = B.Enabled.Text == "Enabled" and Color3.fromRGB(60, 200, 60) or Color3.fromRGB(200, 60, 60)
  1308. B.Enabled.BorderColor3 = B.Enabled.Text == "Enabled" and Color3.fromRGB(30, 100, 30) or Color3.fromRGB(100, 30, 30)
  1309. end)
  1310. end
  1311. fill(v)
  1312. end
  1313. end
  1314.  
  1315. fill(game.ReplicatedStorage)
  1316.  
  1317. -- Backend // Remotespy Backend
  1318.  
  1319. local game_meta = getrawmetatable(game)
  1320. local game_namecall = game_meta.__namecall
  1321. local namecall_dump = {}
  1322. local current_rmt = nil
  1323. local g_caller = nil
  1324. local f_return = nil
  1325. local Step = game:GetService("RunService").Stepped
  1326.  
  1327. local mwr
  1328.  
  1329. if setreadonly ~= nil then
  1330. mwr = function()
  1331. setreadonly(game_meta, false)
  1332. end
  1333. elseif make_writeable ~= nil then
  1334. mwr = function()
  1335. make_writeable(game_meta)
  1336. end
  1337. end
  1338.  
  1339. mwr()
  1340.  
  1341. local namecall_script = function(object, method, ...)
  1342. local script = "-- Script generated by R2Sv2\n-- R2Sv2 developed by Luckyxero\n\32\n"
  1343. local args = {}
  1344. for i, v in pairs{...} do
  1345. script = script .. "local A_" .. i .. " = " .. (type(v) == "table" and Table_TS(v) or GetType(v)) .. "\n"
  1346. table.insert(args, "A_" .. i)
  1347. end
  1348. script = script .. "local Event = " .. GetPath(object) .. "\n\n"
  1349. script = script .. "Event:" .. method .. "(" .. table.concat(args, ", ") .. ")"
  1350.  
  1351. return script
  1352. end
  1353.  
  1354. local dump_script = function(script)
  1355. Source:ClearAllChildren()
  1356. local lines = 0
  1357. script:gsub("[^\r\n]+", function(c)
  1358. lines = lines + 1
  1359. local tabs = 0
  1360. c:gsub("%\t", function() tabs = tabs + 1 end)
  1361. local line = ScriptLine:Clone()
  1362. line.Parent = Source
  1363. line.SourceText.Text = c
  1364. line.Line.Text = lines
  1365. line.RemoteHighlight.Text = Highlight(c, {"FireServer", "InvokeServer", "invokeServer", "fireServer"})
  1366. line.Position = UDim2.new(0, tabs * (17 * 2), 0, -17 + #Source:GetChildren() * 17)
  1367. line.Globals.Text = Highlight(c, global_env)
  1368. line.Line.Position = UDim2.new(0, 0 - tabs * (17 * 2), 0, 0)
  1369. line.Strings.Text = strings(c)
  1370. line.Keywords.Text = Highlight(c, lua_keywords)
  1371. line.Tokens.Text = hTokens(c)
  1372. line.Comments.Text = comments(c)
  1373. end)
  1374. end
  1375.  
  1376. local log_remote = function(table)
  1377. if SetRemotes[table.object.Name].Enabled.Text == "Disabled" then return end
  1378. local B = RBTN:Clone()
  1379. g_caller = table.caller
  1380. remotes_fired = remotes_fired + 1
  1381. Total.Text = remotes_fired
  1382.  
  1383. B.Parent = Remotes
  1384. B.Position = UDim2.new(0, 10, 0, -20 + #Remotes:GetChildren() * 30)
  1385. B.Icon.Image = table.method == "FireServer" and "rbxassetid://413369506" or "rbxassetid://413369623"
  1386. B.RemoteName.Text = table.object.Name
  1387. B.ID.Text = tostring(remotes_fired)
  1388. B.MouseButton1Down:Connect(function()
  1389. lvl6Frame.Visible = false
  1390. SetRemotes.Visible = false
  1391. SetRemotesTab.Visible = false
  1392. Source.Visible = true
  1393. dump_script(table.script)
  1394. g_caller = table.caller
  1395. f_return = table.freturn == nil and table.object.Name .. " is not RemoteFunction" or table.freturn
  1396. end)
  1397. end
  1398.  
  1399.  
  1400. local get_namecall_dump = function(script, object, ...)
  1401. local Ret = nil
  1402. if object.ClassName == "RemoteFunction" then
  1403. local freturn = {pcall(object.InvokeServer, object, ...)}
  1404. freturn = {select(2, unpack(freturn))}
  1405.  
  1406. if #freturn == 0 then
  1407. Ret = object.Name .. " is a void type RemoteFunction."
  1408. else
  1409. Ret = Table_TS(freturn)
  1410. end
  1411. end
  1412. namecall_dump[#namecall_dump + 1] =
  1413. {
  1414. script = namecall_script(object, object.ClassName == "RemoteEvent" and "FireServer" or "InvokeServer", ...),
  1415. caller = script,
  1416. object = object,
  1417. method = object.ClassName == "RemoteEvent" and "FireServer" or "InvokeServer",
  1418. freturn = Ret
  1419. }
  1420. end
  1421.  
  1422. GetReturn.MouseButton1Down:Connect(function()
  1423. dump_script(f_return)
  1424. end)
  1425.  
  1426. Decompile.MouseButton1Down:Connect(function()
  1427. local source = decompile(g_caller, 'unluac', decompile)
  1428.  
  1429. dump_script(type(source) == "boolean" and "Failed to decompile caller script!" or source)
  1430. end))
  1431.  
  1432. Step:Connect(function()
  1433. while #namecall_dump > 0 do
  1434. log_remote(table.remove(namecall_dump, 1))
  1435. end
  1436. end)
  1437.  
  1438. local on_namecall = function(object, ...)
  1439. local method = select(#{...}, ...)
  1440. local args = {...}
  1441. args[#args] = nil
  1442. if object.Name ~= "CharacterSoundEvent" and method:match("Server") and spy_enabled == true then get_namecall_dump(getfenv(2).script, object, unpack(args)) end
  1443.  
  1444. return game_namecall(object, ...)
  1445. end
  1446.  
  1447. game_meta.__namecall = on_namecall
  1448. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement