Advertisement
Guest User

The remote spy that i use

a guest
Mar 31st, 2020
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.16 KB | None | 0 0
  1. RemoteM = nil
  2. times = 0
  3. times2 = 0
  4. On = true
  5. Ignore = {}
  6. ButtonsTable = {}
  7. ls = nil
  8. --MoveableGui Functions--
  9. MDown = false
  10. Mouse = game.Players.LocalPlayer:GetMouse()
  11. function ConvertNumbers(X, Y)
  12. TX = Mouse.ViewSizeX*X
  13. TY = Mouse.ViewSizeY*Y
  14. return TX, TY
  15. end
  16. function MoveableItem(item)
  17. item.InputBegan:connect(function(input)
  18. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  19. MDown = true
  20. CX, CY = ConvertNumbers(item.Position.X.Scale, item.Position.Y.Scale)
  21. item.Position = UDim2.new(0, item.Position.X.Offset+CX, 0, item.Position.Y.Offset+CY)
  22. StartX = Mouse.X - item.Position.X.Offset
  23. StartY = Mouse.Y - item.Position.Y.Offset
  24. while MDown == true do
  25. item.Position = UDim2.new(0, Mouse.X - StartX, 0, Mouse.Y - StartY)
  26. wait()
  27. end
  28. end
  29. end)
  30. item.InputEnded:connect(function(input)
  31. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  32. MDown = false
  33. end
  34. end)
  35. end
  36. --End of MoveableGui Functions--
  37.  
  38. RemoteFolder = Instance.new("Folder")
  39. RemoteFolder.Name = "RemoteHolder"
  40.  
  41. function AddNewRemote(Remote, Line, scr)
  42. RemoteModel = Instance.new("Model", RemoteFolder)
  43. RemoteModel.Name = Remote.Name
  44. RemoteObject = Instance.new("ObjectValue", RemoteModel)
  45. RemoteObject.Name = "Remote"
  46. RemoteObject.Value = Remote
  47. ScriptObject = Instance.new("ObjectValue", RemoteModel)
  48. ScriptObject.Name = "Script"
  49. if typeof(scr) == "Instance" then
  50. ScriptObject.Value = scr
  51. end
  52. RemoteArgs = Instance.new("StringValue", RemoteModel)
  53. RemoteArgs.Name = "Args"
  54. RemoteArgs.Value = Line
  55. end
  56.  
  57. RemoteFolder.ChildAdded:connect(function(c)
  58. wait(0.1)
  59. arb(c["Remote"].Value, c["Args"].Value, c["Script"].Value)
  60. end)
  61.  
  62. function dcp(scr)
  63. par = GetParent(scr)
  64. if par ~= "Object was either removed or something went wrong." then
  65. en = "\n "..par.. " Is the location of the local script."
  66. else
  67. en = par
  68. end
  69. scsr = nil
  70. repeat
  71. wait()
  72. dec = decompile(scr)
  73. until scsr ~= nil or tostring(scsr) ~= "boolean"
  74. if Synapse then
  75. Synapse:Copy(dec..en)
  76. else
  77. setclipboard(dec..en)
  78.  
  79. end
  80. end
  81.  
  82. local VRS = Instance.new("ScreenGui", game:GetService("CoreGui"))
  83. VRS.Name = "Victini's RemoteSpy"
  84. VRS.ResetOnSpawn = false
  85. -------
  86. local Holder = Instance.new("ScrollingFrame", VRS)
  87. Holder.Name = "Holder"
  88. Holder.Size = UDim2.new(0, 270, 0, 295)
  89. Holder.BackgroundColor3 = Color3.new(161/255, 1, 248/255)
  90. Holder.BackgroundTransparency = 0.6
  91. Holder.CanvasSize = UDim2.new(0, 0, 20, 99999)
  92. Holder.Position = UDim2.new(0, 0, 0, 25)
  93. MoveableItem(Holder)
  94. --------
  95. Folder = Instance.new("Folder")
  96. Folder.Parent = Holder
  97. Folder.Name = "Buttons and stuff holder"
  98. -------
  99. local Bar = Instance.new("Frame")
  100. Bar.BackgroundColor3 = Color3.new(0, 0, 0)
  101. Bar.Name = "Bar"
  102. Bar.Size = UDim2.new(0, 254, 0, 27)
  103. Bar.Parent = Folder
  104. -------
  105. local Clear = Instance.new("TextButton")
  106. Clear.Active = true
  107. Clear.BackgroundColor3 = Color3.new(0, 0, 0)
  108. Clear.Name = "CLR"
  109. Clear.Position = UDim2.new(0.63, 0, 0, 0)
  110. Clear.Selectable = true
  111. Clear.Size = UDim2.new(0, 39, 0, 27)
  112. Clear.Style = Enum.ButtonStyle.Custom
  113. Clear.Font = Enum.Font.Cartoon
  114. Clear.FontSize = Enum.FontSize.Size14
  115. Clear.Text = "CLR"
  116. Clear.TextColor3 = Color3.new(1, 1, 1)
  117. Clear.TextScaled = true
  118. Clear.TextWrapped = true
  119. Clear.Parent = Folder
  120. Clear.MouseButton1Down:connect(function()
  121. for i = 1, #ButtonsTable do
  122. pcall(function()
  123. ButtonsTable[i]:remove()
  124. end)
  125. end
  126. times = 0
  127. ButtonsTable = {}
  128. end)
  129. -------
  130. local Title = Instance.new("TextLabel")
  131. Title.BackgroundColor3 = Color3.new(0, 0, 0)
  132. Title.Name = "TextHolder"
  133. Title.Position = UDim2.new(0.00545596238, 0, 0, 0)
  134. Title.Size = UDim2.new(0, 165, 0, 27)
  135. Title.Font = Enum.Font.Cartoon
  136. Title.FontSize = Enum.FontSize.Size14
  137. Title.Text = "Victini's RemoteSpy"
  138. Title.TextColor3 = Color3.new(1, 1, 1)
  139. Title.TextScaled = true
  140. Title.TextWrapped = true
  141. Title.Parent = Folder
  142. -------
  143. local RHR = Instance.new("TextLabel")
  144. RHR.BorderColor3 = Color3.new(0, 0, 0)
  145. RHR.BorderSizePixel = 3
  146. RHR.Name = "Full Remote Holder"
  147. RHR.Position = UDim2.new(0.20265004, 0, 0.345752597, 0)
  148. RHR.Size = UDim2.new(0, 314, 0, 63)
  149. RHR.Font = Enum.Font.Cartoon
  150. RHR.FontSize = Enum.FontSize.Size14
  151. RHR.Text = ""
  152. RHR.TextColor3 = Color3.new(0, 0, 0)
  153. RHR.TextScaled = true
  154. RHR.BackgroundColor3 = Color3.new(161/255, 1, 248/255)
  155. RHR.BackgroundTransparency = 0.6
  156. RHR.Parent = VRS
  157. MoveableItem(RHR)
  158. RHR.Visible = false
  159. -------
  160. local Close = Instance.new("TextButton")
  161. Close.Active = true
  162. Close.Name = "Close"
  163. Close.Position = UDim2.new(0, 0, 1, 0)
  164. Close.Selectable = true
  165. Close.Size = UDim2.new(0, 23, 0, 23)
  166. Close.Style = Enum.ButtonStyle.Custom
  167. Close.Font = Enum.Font.Cartoon
  168. Close.FontSize = Enum.FontSize.Size14
  169. Close.Text = "X"
  170. Close.TextColor3 = Color3.new(0, 0, 0)
  171. Close.TextScaled = true
  172. Close.TextWrapped = true
  173. Close.Parent = RHR
  174. Close.MouseButton1Down:connect(function()
  175. RHR.Visible = false
  176. end)
  177. -------
  178. local AddT = Instance.new("TextButton")
  179. AddT.Active = true
  180. AddT.Name = "AddT"
  181. AddT.Position = UDim2.new(0, 24, 1, 0)
  182. AddT.Selectable = true
  183. AddT.Size = UDim2.new(0, 23, 0, 23)
  184. AddT.Style = Enum.ButtonStyle.Custom
  185. AddT.Font = Enum.Font.Cartoon
  186. AddT.FontSize = Enum.FontSize.Size14
  187. AddT.Text = "+"
  188. AddT.TextColor3 = Color3.new(0, 0, 0)
  189. AddT.TextScaled = true
  190. AddT.TextWrapped = true
  191. AddT.Parent = RHR
  192. AddT.MouseButton1Down:connect(function()
  193. table.insert(Ignore, RemoteM)
  194. aib(RemoteM)
  195. end)
  196. -------
  197. local Copy = Instance.new("TextButton")
  198. Copy.Active = true
  199. Copy.Modal = true
  200. Copy.Name = "Copy"
  201. Copy.Position = UDim2.new(0, 48, 1, 0)
  202. Copy.Selectable = true
  203. Copy.Size = UDim2.new(0, 23, 0, 23)
  204. Copy.Style = Enum.ButtonStyle.Custom
  205. Copy.Font = Enum.Font.Cartoon
  206. Copy.FontSize = Enum.FontSize.Size14
  207. Copy.Text = "CPY"
  208. Copy.TextColor3 = Color3.new(0, 0, 0)
  209. Copy.TextScaled = true
  210. Copy.Parent = RHR
  211. Copy.MouseButton1Down:connect(function()
  212. if Synapse then
  213. Synapse:Copy(RHR.Text)
  214. elseif setclipboard then
  215. setclipboard(RHR.Text)
  216. end
  217. end)
  218. -------
  219. local Decom = Instance.new("TextButton")
  220. Decom.Active = true
  221. Decom.Modal = true
  222. Decom.Name = "Decompile"
  223. Decom.Position = UDim2.new(0, 72, 1, 0)
  224. Decom.Selectable = true
  225. Decom.Size = UDim2.new(0, 23, 0, 23)
  226. Decom.Style = Enum.ButtonStyle.Custom
  227. Decom.Font = Enum.Font.Cartoon
  228. Decom.FontSize = Enum.FontSize.Size14
  229. Decom.Text = "DCP"
  230. Decom.TextColor3 = Color3.new(0, 0, 0)
  231. Decom.TextScaled = true
  232. Decom.Parent = RHR
  233. Decom.MouseButton1Down:connect(function()
  234. dcp(ls)
  235. end)
  236. -------
  237. local ONOFF = Instance.new("TextButton")
  238. ONOFF.Active = true
  239. ONOFF.BackgroundColor3 = Color3.new(0, 0, 0)
  240. ONOFF.Name = "ONOFF"
  241. ONOFF.Position = UDim2.new(0.79, 0, 0, 0)
  242. ONOFF.Selectable = true
  243. ONOFF.Size = UDim2.new(0, 39, 0, 27)
  244. ONOFF.Style = Enum.ButtonStyle.Custom
  245. ONOFF.Font = Enum.Font.Cartoon
  246. ONOFF.FontSize = Enum.FontSize.Size14
  247. ONOFF.Text = "ON"
  248. ONOFF.TextColor3 = Color3.new(1, 1, 1)
  249. ONOFF.TextScaled = true
  250. ONOFF.Parent = Folder
  251. ONOFF.MouseButton1Down:connect(function()
  252. if ONOFF.Text == "ON" then
  253. ONOFF.Text = "OFF"
  254. On = false
  255. else
  256. ONOFF.Text = "ON"
  257. On = true
  258. end
  259. end)
  260.  
  261. function arb(re, arg, lcsr)
  262. local RM = Instance.new("TextButton")
  263. RM.Name = "Button"
  264. RM.Text = re.Name
  265. RM.Size = UDim2.new(0, 270, 0 , 30)
  266. RM.Position = UDim2.new(0, 0, 0, (times * 30) + 25)
  267. RM.Parent = Holder
  268. RM.TextScaled = true
  269. RM.Font = Enum.Font.Cartoon
  270. RM.BackgroundColor3 = Color3.new(0, 0.5, 0.7)
  271. RM.TextColor3 = Color3.new(1, 1, 1)
  272. times = times + 1
  273. table.insert(ButtonsTable, RM)
  274. RM.MouseButton1Down:connect(function()
  275. RHR.Visible = true
  276. RHR.Text = arg
  277. RHR.Position = Holder.Position + UDim2.new(0, 273, 0, 232)
  278. RemoteM = re
  279. ls = lcsr
  280. end)
  281. end
  282.  
  283. -------
  284. local IgL = Instance.new("ScrollingFrame", VRS)
  285. IgL.BackgroundColor3 = Color3.new(0.631373, 1, 0.972549)
  286. IgL.BackgroundTransparency = 0.6
  287. IgL.Position = UDim2.new(0, 0, 0, 300)
  288. IgL.Size = UDim2.new(0, 270, 0, 279)
  289. IgL.ClipsDescendants = true
  290. IgL.CanvasSize = UDim2.new(0, 0, 20, 99999)
  291. IgL.Visible = false
  292. MoveableItem(IgL)
  293. Folder2 = Instance.new("Folder")
  294. Folder2.Parent = IgL
  295. -------
  296. local Bar4 = Instance.new("Frame")
  297. Bar4.BackgroundColor3 = Color3.new(0, 0, 0)
  298. Bar4.Position = UDim2.new(0, 0, 0, 0)
  299. Bar4.Size = UDim2.new(0, 270, 0, 27)
  300. Bar4.Parent = Folder2
  301. -------
  302. local IgLB = Instance.new("TextLabel")
  303. IgLB.BackgroundTransparency = 1
  304. IgLB.Position = UDim2.new(0, 0, 0, 0)
  305. IgLB.Size = UDim2.new(0, 250, 0, 27)
  306. IgLB.FontSize = Enum.FontSize.Size14
  307. IgLB.Text = "Ignore List"
  308. IgLB.TextColor3 = Color3.new(1, 1, 1)
  309. IgLB.TextScaled = true
  310. IgLB.TextWrapped = true
  311. IgLB.Parent = Folder2
  312. -------
  313. function aib(RN)
  314. local IB = Instance.new("TextButton")
  315. IB.Name = tostring(RN)
  316. IB.Text = tostring(RN)
  317. IB.Size = UDim2.new(0, 270, 0 , 30)
  318. IB.Position = UDim2.new(0, 0, 0, (times2 * 30) + 25)
  319. IB.Parent = IgL
  320. IB.TextScaled = true
  321. IB.Font = Enum.Font.Cartoon
  322. IB.BackgroundColor3 = Color3.new(0, 0.5, 0.7)
  323. IB.TextColor3 = Color3.new(1, 1, 1)
  324. times2 = times2 + 1
  325. IB.MouseButton1Down:connect(function()
  326. for i = 1, #Ignore do
  327. if Ignore[i] == RN then
  328. table.remove(Ignore, i)
  329. break
  330. end
  331. end
  332. IB:remove()
  333. times2 = 0
  334. for i, v in pairs(IgL:GetChildren()) do
  335. if v:IsA("TextButton") then
  336. v.Position = UDim2.new(0, 0, 0, (times2 * 30) + 25)
  337. times2 = times2 + 1
  338. end
  339. end
  340. end)
  341. end
  342. -------
  343.  
  344.  
  345. local RSOC = Instance.new("TextButton")
  346. RSOC.Active = true
  347. RSOC.BackgroundColor3 = Color3.new(0.631373, 1, 0.972549)
  348. RSOC.Name = "RSOC"
  349. RSOC.Position = UDim2.new(0, 0, 0.671212125, 0)
  350. RSOC.Selectable = true
  351. RSOC.Size = UDim2.new(0, 151, 0, 50)
  352. RSOC.Style = Enum.ButtonStyle.Custom
  353. RSOC.FontSize = Enum.FontSize.Size14
  354. RSOC.Text = "RemoteSpy: Open"
  355. RSOC.TextColor3 = Color3.new(0, 0, 0)
  356. RSOC.TextScaled = true
  357. RSOC.TextWrapped = true
  358. RSOC.Parent = VRS
  359. RSOC.MouseButton1Down:connect(function()
  360. if RSOC.Text == "RemoteSpy: Open" then
  361. RSOC.Text = "RemoteSpy: Closed"
  362. Holder.Visible = false
  363. else
  364. RSOC.Text = "RemoteSpy: Open"
  365. Holder.Visible = true
  366. end
  367. end)
  368. -------
  369. local IgLOC = Instance.new("TextButton")
  370. IgLOC.Active = true
  371. IgLOC.BackgroundColor3 = Color3.new(0.631373, 1, 0.972549)
  372. IgLOC.Name = "IgLOC"
  373. IgLOC.Position = UDim2.new(0, 0, 0.725, 0)
  374. IgLOC.Selectable = true
  375. IgLOC.Size = UDim2.new(0, 151, 0, 50)
  376. IgLOC.Style = Enum.ButtonStyle.Custom
  377. IgLOC.FontSize = Enum.FontSize.Size14
  378. IgLOC.Text = "Ignore List: Closed"
  379. IgLOC.TextColor3 = Color3.new(0, 0, 0)
  380. IgLOC.TextScaled = true
  381. IgLOC.TextWrapped = true
  382. IgLOC.Parent = VRS
  383. IgLOC.MouseButton1Down:connect(function()
  384. if IgLOC.Text == "Ignore List: Closed" then
  385. IgLOC.Text = "Ignore List: Open"
  386. IgL.Visible = true
  387. else
  388. IgLOC.Text = "Ignore List: Closed"
  389. IgL.Visible = false
  390. end
  391. end)
  392.  
  393. function GetValues(args)
  394. local Vals = args
  395. local args = ""
  396. for i, v in pairs(Vals) do
  397. t = typeof(Vals[i])
  398. if t == "string" then
  399. args = args..StringConvert(Vals[i])
  400. elseif t == "table" then
  401. if tonumber(i) == nil then
  402. args = args..'["'..tostring(i)..'"] = '.."{"..GetValues(v).."}"
  403. else
  404. args = args.."{"..GetValues(v).."}"
  405. end
  406. elseif t == "Vector3" or t == "CFrame" or t == "Color3" then
  407. args = args..t..".new("..tostring(Vals[i])..")"
  408. elseif t == "BrickColor" then
  409. args = args..t..'.new("'..tostring(Vals[i])..'")'
  410. elseif t == "Instance" then
  411. args = args..GetParent(Vals[i])
  412. else
  413. args = args..tostring(Vals[i])
  414. end
  415. args = args..", "
  416. end
  417. args = string.sub(args, 1, string.len(args) - 2)
  418. return args
  419. end
  420.  
  421. function StringConvert(S)
  422. for i = 1, string.len(S) do
  423. if S:sub(i, i) == '"' or S:sub(i, i) == "'" then
  424. S = "[["..S.."]]"
  425. return S
  426. end
  427. end
  428. return '"'..S..'"'
  429. end
  430.  
  431. function CheckForSpecial(Name)
  432. for i = 1, string.len(Name) do
  433. C = tonumber(string.byte(Name, i, i))
  434. if C >= 65 and C <= 90 or C >= 97 and C <= 122 or C >= 48 and C <= 57 then
  435. else
  436. return false
  437. end
  438. end
  439. end
  440.  
  441. function GetParent(Name)
  442. if Name ~= nil and Name.Parent ~= nil then
  443. TempLineStore = ""
  444. if tonumber(string.sub(Name.Name, 1, 1)) ~= nil or CheckForSpecial(Name.Name) == false then
  445. TempLineStore = '["'..Name.Name..'"]'
  446. else
  447. TempLineStore = Name.Name
  448. end
  449. repeat
  450. if string.sub(TempLineStore, 1, 1) ~= "[" then
  451. TempLineStore = "."..TempLineStore
  452. end
  453. if tonumber(string.sub(Name.Parent.Name, 1, 1)) ~= nil or CheckForSpecial(Name.Parent.Name) == false then
  454. TempLineStore = '["'..Name.Parent.Name..'"]'..TempLineStore
  455. else
  456. TempLineStore = Name.Parent.Name..TempLineStore
  457. end
  458. Name = Name.Parent
  459. until Name.Parent == nil
  460. return TempLineStore
  461. else
  462. return "Object was either nil or deleted."
  463. end
  464. end
  465.  
  466. meta = getrawmetatable(game)
  467. nc = meta.__namecall
  468. make_writeable(meta)
  469.  
  470. meta.__namecall = function(rc, ...)
  471. if On == true then
  472. local args = {...}
  473. local callM = getnamecallmethod()
  474. if ((rc.ClassName == "BindableEvent" and callM == "Fire") or (rc.ClassName == "BindableFunction" and callM == "Invoke") or (rc.ClassName == "RemoteEvent" and callM == "FireServer") or (rc.ClassName == "RemoteFunction" and callM == "InvokeServer")) and rc.Name ~= "CharacterSoundEvent" and rc.Parent ~= nil then
  475. for i = 1, #Ignore do
  476. if rc == Ignore[i] then
  477. return nc(rc, ...)
  478. end
  479. end
  480. AddNewRemote(rc, GetParent(rc)..":"..tostring(callM).."("..GetValues(args)..")", getfenv(2).script)
  481. end
  482. return nc(rc, ...)
  483. else
  484. return nc(rc, ...)
  485. end
  486. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement