FantasyGamer

Remote event logger [GUI]

May 25th, 2017
1,379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.53 KB | None | 0 0
  1. game.Players.LocalPlayer:WaitForChild('PlayerGui')
  2. -- Objects
  3.  
  4. local RemoteGui = Instance.new("ScreenGui")
  5. local Frame = Instance.new("Frame")
  6. local Log = Instance.new("ScrollingFrame")
  7. local Log_2 = Instance.new("TextLabel")
  8. local TopHeader = Instance.new("Frame")
  9. local TextLabel = Instance.new("TextLabel")
  10. local Frame_2 = Instance.new("Frame")
  11. local Frame_3 = Instance.new("Frame")
  12. local Donate = Instance.new("TextButton")
  13. local Frame_4 = Instance.new("Frame")
  14. local FireClient = Instance.new("TextButton")
  15. local Frame_5 = Instance.new("Frame")
  16. local ClearOutput = Instance.new("TextButton")
  17. local Frame_6 = Instance.new("Frame")
  18. local Tutorial = Instance.new("TextButton")
  19. local Events = Instance.new("Frame")
  20. local ArgsText = Instance.new("TextBox")
  21. local RunArgs = Instance.new("TextButton")
  22. local ArgsText_2 = Instance.new("TextBox")
  23. local CloseEvents = Instance.new("TextButton")
  24. local CloseMainFrame = Instance.new("TextButton")
  25. local create_sound = Instance.new("Sound")
  26. local erase_Sound = Instance.new("Sound")
  27.  
  28. -- Properties
  29.  
  30. RemoteGui.Name = "RemoteGui"
  31. RemoteGui.Parent = game.Players.LocalPlayer.PlayerGui
  32.  
  33. Frame.Parent = RemoteGui
  34. Frame.Active = true
  35. Frame.BackgroundColor3 = Color3.new(0.666667, 0.333333, 0)
  36. Frame.BorderColor3 = Color3.new(1, 1, 1)
  37. Frame.Draggable = true
  38. Frame.Position = UDim2.new(0, 212, 0, 178)
  39. Frame.Size = UDim2.new(0, 430, 0, 421)
  40.  
  41. Log.Name = "Log"
  42. Log.Parent = Frame
  43. Log.BackgroundColor3 = Color3.new(0.658824, 0.329412, 0)
  44. Log.BorderColor3 = Color3.new(0.333333, 1, 1)
  45. Log.BorderSizePixel = 0
  46. Log.Position = UDim2.new(0, 0, 0, 29)
  47. Log.Size = UDim2.new(0, 428, 0, 315)
  48. Log.CanvasSize = UDim2.new(0, 0, 315, 0)
  49. Log.ScrollBarThickness = 5
  50.  
  51. Log_2.Name = "Log"
  52. Log_2.Parent = Log
  53. Log_2.BackgroundColor3 = Color3.new(0.192157, 0.192157, 0.192157)
  54. Log_2.BorderColor3 = Color3.new(0, 0.666667, 0)
  55. Log_2.Position = UDim2.new(0, 10, 0, 5)
  56. Log_2.Size = UDim2.new(0, 404, 0, 26)
  57. Log_2.Font = Enum.Font.SourceSansLight
  58. Log_2.FontSize = Enum.FontSize.Size14
  59. Log_2.Text = " Start of Remote Event log"
  60. Log_2.TextColor3 = Color3.new(1, 1, 1)
  61. Log_2.TextScaled = true
  62. Log_2.TextSize = 14
  63. Log_2.TextWrapped = true
  64. Log_2.TextXAlignment = Enum.TextXAlignment.Left
  65. Log_2.TextYAlignment = Enum.TextYAlignment.Top
  66.  
  67. TopHeader.Name = "TopHeader"
  68. TopHeader.Parent = Frame
  69. TopHeader.BackgroundColor3 = Color3.new(0.54902, 0.54902, 0.54902)
  70. TopHeader.BorderColor3 = Color3.new(1, 1, 1)
  71. TopHeader.Size = UDim2.new(0, 430, 0, 29)
  72.  
  73. TextLabel.Parent = TopHeader
  74. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  75. TextLabel.BackgroundTransparency = 1
  76. TextLabel.BorderSizePixel = 0
  77. TextLabel.Size = UDim2.new(0, 398, 0, 29)
  78. TextLabel.Font = Enum.Font.SourceSansLight
  79. TextLabel.FontSize = Enum.FontSize.Size24
  80. TextLabel.Text = " Remote Events logger by fantasygamery"
  81. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  82. TextLabel.TextSize = 20
  83. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  84.  
  85. Frame_2.Parent = Frame
  86. Frame_2.BackgroundColor3 = Color3.new(0.529412, 0.529412, 0.529412)
  87. Frame_2.BorderColor3 = Color3.new(1, 1, 1)
  88. Frame_2.Position = UDim2.new(0, 0, 0, 345)
  89. Frame_2.Size = UDim2.new(0, 430, 0, 76)
  90.  
  91. Frame_3.Parent = Frame_2
  92. Frame_3.BackgroundColor3 = Color3.new(0.309804, 0.309804, 0.309804)
  93. Frame_3.BorderColor3 = Color3.new(1, 1, 1)
  94. Frame_3.BorderSizePixel = 0
  95. Frame_3.Position = UDim2.new(0, 155, 0, 5)
  96. Frame_3.Size = UDim2.new(0, 100, 0, 27)
  97.  
  98. Donate.Name = "Donate"
  99. Donate.Parent = Frame_3
  100. Donate.BackgroundColor3 = Color3.new(0.501961, 0.501961, 0.501961)
  101. Donate.BorderSizePixel = 0
  102. Donate.Size = UDim2.new(0, 100, 0, 23)
  103. Donate.Font = Enum.Font.Highway
  104. Donate.FontSize = Enum.FontSize.Size14
  105. Donate.Text = "Donate"
  106. Donate.TextColor3 = Color3.new(1, 1, 1)
  107. Donate.TextSize = 14
  108.  
  109. Frame_4.Parent = Frame_2
  110. Frame_4.BackgroundColor3 = Color3.new(0, 0.388235, 0)
  111. Frame_4.BorderColor3 = Color3.new(1, 1, 1)
  112. Frame_4.BorderSizePixel = 0
  113. Frame_4.Position = UDim2.new(0, 19, 0, 5)
  114. Frame_4.Size = UDim2.new(0, 100, 0, 27)
  115.  
  116. FireClient.Name = "FireClient"
  117. FireClient.Parent = Frame_4
  118. FireClient.BackgroundColor3 = Color3.new(0, 0.666667, 0)
  119. FireClient.BorderSizePixel = 0
  120. FireClient.Size = UDim2.new(0, 100, 0, 23)
  121. FireClient.Font = Enum.Font.Highway
  122. FireClient.FontSize = Enum.FontSize.Size14
  123. FireClient.Text = "Fire client"
  124. FireClient.TextColor3 = Color3.new(1, 1, 1)
  125. FireClient.TextSize = 14
  126.  
  127. Frame_5.Parent = Frame_2
  128. Frame_5.BackgroundColor3 = Color3.new(0.568627, 0, 0)
  129. Frame_5.BorderColor3 = Color3.new(1, 1, 1)
  130. Frame_5.BorderSizePixel = 0
  131. Frame_5.Position = UDim2.new(0, 287, 0, 5)
  132. Frame_5.Size = UDim2.new(0, 100, 0, 27)
  133.  
  134. ClearOutput.Name = "ClearOutput"
  135. ClearOutput.Parent = Frame_5
  136. ClearOutput.BackgroundColor3 = Color3.new(1, 0, 0)
  137. ClearOutput.BorderSizePixel = 0
  138. ClearOutput.Size = UDim2.new(0, 100, 0, 23)
  139. ClearOutput.Font = Enum.Font.Highway
  140. ClearOutput.FontSize = Enum.FontSize.Size14
  141. ClearOutput.Text = "Clear OutPut"
  142. ClearOutput.TextColor3 = Color3.new(1, 1, 1)
  143. ClearOutput.TextSize = 14
  144.  
  145. Frame_6.Parent = Frame_2
  146. Frame_6.BackgroundColor3 = Color3.new(0, 0.388235, 0)
  147. Frame_6.BorderColor3 = Color3.new(1, 1, 1)
  148. Frame_6.BorderSizePixel = 0
  149. Frame_6.Position = UDim2.new(0, 19, 0, 44)
  150. Frame_6.Size = UDim2.new(0, 100, 0, 27)
  151.  
  152. Tutorial.Name = "Tutorial"
  153. Tutorial.Parent = Frame_6
  154. Tutorial.BackgroundColor3 = Color3.new(0, 0.666667, 0)
  155. Tutorial.BorderSizePixel = 0
  156. Tutorial.Size = UDim2.new(0, 100, 0, 23)
  157. Tutorial.Font = Enum.Font.Highway
  158. Tutorial.FontSize = Enum.FontSize.Size12
  159. Tutorial.Text = "Take a little tutorial"
  160. Tutorial.TextColor3 = Color3.new(1, 1, 1)
  161. Tutorial.TextSize = 12
  162.  
  163. Events.Name = "Events"
  164. Events.Parent = Frame
  165. Events.BackgroundColor3 = Color3.new(0.529412, 0.529412, 0.529412)
  166. Events.BackgroundTransparency = 0.10000000149012
  167. Events.BorderColor3 = Color3.new(1, 1, 1)
  168. Events.Size = UDim2.new(0, 430, 0, 344)
  169. Events.Visible = false
  170.  
  171. ArgsText.Name = "ArgsText"
  172. ArgsText.Parent = Events
  173. ArgsText.BackgroundColor3 = Color3.new(0.403922, 0.772549, 1)
  174. ArgsText.BorderColor3 = Color3.new(1, 1, 1)
  175. ArgsText.Position = UDim2.new(0, 115, 0, 9)
  176. ArgsText.Size = UDim2.new(0, 200, 0, 34)
  177. ArgsText.Font = Enum.Font.SourceSansLight
  178. ArgsText.FontSize = Enum.FontSize.Size14
  179. ArgsText.Text = "Argument"
  180. ArgsText.TextColor3 = Color3.new(1, 1, 1)
  181. ArgsText.TextScaled = true
  182. ArgsText.TextSize = 14
  183. ArgsText.TextWrapped = true
  184.  
  185. RunArgs.Name = "RunArgs"
  186. RunArgs.Parent = Events
  187. RunArgs.BackgroundColor3 = Color3.new(0.333333, 0, 0)
  188. RunArgs.BorderColor3 = Color3.new(1, 1, 1)
  189. RunArgs.Position = UDim2.new(0, 109, 0, 95)
  190. RunArgs.Size = UDim2.new(0, 211, 0, 34)
  191. RunArgs.Font = Enum.Font.SourceSansLight
  192. RunArgs.FontSize = Enum.FontSize.Size14
  193. RunArgs.Text = "Run Argument on Remote"
  194. RunArgs.TextColor3 = Color3.new(1, 1, 1)
  195. RunArgs.TextScaled = true
  196. RunArgs.TextSize = 13
  197. RunArgs.TextWrapped = true
  198.  
  199. ArgsText_2.Name = "ArgsText"
  200. ArgsText_2.Parent = Events
  201. ArgsText_2.BackgroundColor3 = Color3.new(0.333333, 0.666667, 0)
  202. ArgsText_2.BorderColor3 = Color3.new(1, 1, 1)
  203. ArgsText_2.Position = UDim2.new(0, 115, 0, 52)
  204. ArgsText_2.Size = UDim2.new(0, 200, 0, 34)
  205. ArgsText_2.Font = Enum.Font.SourceSansLight
  206. ArgsText_2.FontSize = Enum.FontSize.Size14
  207. ArgsText_2.Text = "Remote Name"
  208. ArgsText_2.TextColor3 = Color3.new(1, 1, 1)
  209. ArgsText_2.TextScaled = true
  210. ArgsText_2.TextSize = 14
  211. ArgsText_2.TextWrapped = true
  212.  
  213. CloseEvents.Name = "CloseEvents"
  214. CloseEvents.Parent = Events
  215. CloseEvents.BackgroundColor3 = Color3.new(0.666667, 0, 0)
  216. CloseEvents.BorderColor3 = Color3.new(1, 1, 1)
  217. CloseEvents.Position = UDim2.new(0, 370, 0, 0)
  218. CloseEvents.Size = UDim2.new(0, 60, 0, 21)
  219. CloseEvents.Font = Enum.Font.SourceSansLight
  220. CloseEvents.FontSize = Enum.FontSize.Size14
  221. CloseEvents.Text = "Close"
  222. CloseEvents.TextColor3 = Color3.new(1, 1, 1)
  223. CloseEvents.TextScaled = true
  224. CloseEvents.TextSize = 14
  225. CloseEvents.TextWrapped = true
  226.  
  227. CloseMainFrame.Name = "CloseMainFrame"
  228. CloseMainFrame.Parent = Frame
  229. CloseMainFrame.BackgroundColor3 = Color3.new(0.666667, 0, 0)
  230. CloseMainFrame.BorderColor3 = Color3.new(1, 1, 1)
  231. CloseMainFrame.Position = UDim2.new(0, 370, 0, 0)
  232. CloseMainFrame.Size = UDim2.new(0, 60, 0, 21)
  233. CloseMainFrame.Font = Enum.Font.SourceSansLight
  234. CloseMainFrame.FontSize = Enum.FontSize.Size14
  235. CloseMainFrame.Text = "Close"
  236. CloseMainFrame.TextColor3 = Color3.new(1, 1, 1)
  237. CloseMainFrame.TextScaled = true
  238. CloseMainFrame.TextSize = 14
  239. CloseMainFrame.TextWrapped = true
  240.  
  241. create_sound.Name = "Create Sound"
  242. create_sound.Parent = RemoteGui
  243. create_sound.SoundId = "rbxassetid://622219872"
  244.  
  245. erase_Sound.Name = "Erase Sound"
  246. erase_Sound.SoundId = "rbxassetid://675401384"
  247. erase_Sound.Parent = RemoteGui
  248.  
  249. local button = Donate
  250. local product = 81115489
  251. local player = game.Players.LocalPlayer
  252. function donate(id, player, service)
  253. service:PromptProductPurchase(player,id)
  254. end
  255.  
  256. button.MouseButton1Down:connect(function()
  257. donate(product,player,game:GetService('MarketplaceService'))
  258. end)
  259.  
  260. local obj = {}
  261. local parentT = {}
  262. local events = {}
  263. local log_number = 0
  264. function createlog(text,pos,color,color2)
  265. local t = Log_2:Clone()
  266. t.Parent = Log
  267. t.Name = "Log["..pos.."]"
  268. t.Text = text
  269. if color ~= nil then
  270. t.TextColor3 = color
  271. end
  272.  
  273. if color2 ~= nil then
  274. t.BorderColor3 = color2
  275. end
  276.  
  277. log_number = log_number+1
  278. t:TweenPosition(UDim2.new(0,10,0,35*pos),"Out","Bounce",.3,true)
  279. wait(.3)
  280. create_sound:Play()
  281. end
  282.  
  283. function work(s)
  284. for _,d in pairs(s:GetChildren()) do
  285. if d.Name ~= "DefaultChatSystemChatEvents" then
  286. table.insert(obj, d)
  287. work(d)
  288. end
  289. end
  290. end
  291.  
  292.  
  293. work(workspace)
  294. work(game.ReplicatedStorage)
  295. work(game.Players)
  296. local obj2 = 0
  297. --Messages/tips--
  298. obj2 = obj2+1
  299. createlog("You can check the log in the developer console too",obj2)
  300. obj2 = obj2+1
  301. createlog("Current compatible is RemoteEvent",obj2)
  302. obj2 = obj2+1
  303. createlog("Getting changelog",obj2)
  304. obj2 = obj2+1
  305. createlog("New UI ",obj2)
  306. obj2 = obj2+1
  307. createlog("Added Fire Server Button may be not working.",obj2)
  308. -------------------------
  309. --System MSG---
  310. obj2 = obj2+1
  311. createlog("Getting RemoteEvents",obj2,Color3.new(255, 255, 0))
  312. ------------------------
  313. obj2 = obj2+1
  314. createlog("Making buttons events",obj2,Color3.new(255, 255, 0))
  315. --Buttons--
  316. function openEvents()
  317. Events.Visible = true
  318. CloseMainFrame.Visible = false
  319. obj2 = obj2+1
  320. createlog("RemoteEvent executer opened",obj2)
  321. end
  322.  
  323. function closeEvents()
  324. Events.Visible = false
  325. CloseMainFrame.Visible = true
  326. obj2 = obj2+1
  327. createlog("RemoteEvent executer closed",obj2)
  328. end
  329.  
  330. function closeMainFrame()
  331. Frame.Visible = false
  332. end
  333.  
  334. function run(arg,event)
  335. createlog(" Running "..event.." with arguments "..arg,obj2)
  336. for i=1,#obj do
  337. if obj[i].Name:lower() == event:lower() then
  338. obj[i]:FireClient(game.Players.LocalPlayer, arg)
  339. end
  340. end
  341. end
  342.  
  343. function clearOutput()
  344. erase_Sound:Play()
  345. wait(.5)
  346. for i=1,log_number do
  347. Log["Log["..log_number.."]"]:TweenSize(UDim2.new(0,404,0,0), "Out","Linear",.3,true)
  348. Log["Log["..log_number.."]"].Text = ""
  349. wait(.3)
  350. Log["Log["..log_number.."]"]:Destroy()
  351. log_number = log_number-1
  352. end
  353. log_number = 0
  354. obj2 = 0
  355. erase_Sound:Stop()
  356. end
  357.  
  358. function tutorial()
  359. obj2 = obj2+1
  360. createlog("Fire client is for run a RemoteEvent",obj2,Color3.new(255, 255, 0))
  361. obj2 = obj2+1
  362. createlog("Donate is for if you want to donate just 2 robux",obj2,Color3.new(255, 255, 0))
  363. obj2 = obj2+1
  364. createlog("Clear output is to clear the log on the output",obj2,Color3.new(255, 255, 0))
  365. end
  366.  
  367. FireClient.MouseButton1Down:connect(openEvents)
  368.  
  369. CloseEvents.MouseButton1Down:Connect(closeEvents)
  370.  
  371. CloseMainFrame.MouseButton1Down:Connect(closeMainFrame)
  372.  
  373. ClearOutput.MouseButton1Down:Connect(clearOutput)
  374.  
  375. RunArgs.MouseButton1Down:connect(function()
  376. run(ArgsText.Text, ArgsText_2.Text)
  377. end)
  378.  
  379. Tutorial.MouseButton1Down:Connect(tutorial)
  380.  
  381. --EndOfButtons--
  382.  
  383. obj2 = obj2+1
  384. createlog("Buttons events made ",obj2,Color3.new(255, 255, 0))
  385.  
  386. for i=1,#obj do
  387. if obj[i].ClassName == "RemoteEvent" then
  388. obj2 = obj2+1
  389. createlog(obj[i].Name,obj2)
  390.  
  391. --[[warn("")
  392. warn("Remote name: "..obj[i].Name)
  393. warn("RemoteClass: "..obj[i].ClassName)
  394. warn("")
  395. ]]
  396. if obj[i].ClassName == "RemoteEvent" then
  397. obj[i].OnClientEvent:Connect(function(...)
  398. local args3 = {...}
  399. obj2 = obj2+1
  400. createlog("RemoteEvent Called",obj2,Color3.new(170, 255, 0))
  401. obj2 = obj2+1
  402. warn("Remote name: "..obj[i].Name)
  403. createlog("Remote name: "..obj[i].Name,obj2)
  404. warn("args: "..(...))
  405. obj2 = obj2+1
  406. createlog("args: "..(...),obj2)
  407. warn("Getting path...")
  408. obj2 = obj2+1
  409. createlog("Giving path... ",obj2)
  410. if pcall(function() if obj[i].Parent.Parent.Parent.Parent.Parent.Name then end end) then
  411. table.insert(parentT, obj[i].Parent.Parent.Parent.Parent.Parent.Name)
  412. end
  413. if pcall(function()if obj[i].Parent.Parent.Parent.Parent.Name then end end) then
  414. table.insert(parentT, obj[i].Parent.Parent.Parent.Parent.Name)
  415. end
  416. if pcall(function()if obj[i].Parent.Parent.Parent.Name then end end) then
  417. table.insert(parentT, obj[i].Parent.Parent.Parent.Name)
  418. end
  419. if pcall(function() if obj[i].Parent.Parent.Name then end end) then
  420. table.insert(parentT, obj[i].Parent.Parent.Name)
  421. end
  422. if pcall(function() if obj[i].Parent.Name then end end) then
  423. table.insert(parentT, obj[i].Parent.Name)
  424. end
  425.  
  426. if pcall(function() if obj[i].Name then end end) then
  427. table.insert(parentT, obj[i].Name)
  428. end
  429.  
  430. for i=1,#parentT do
  431. warn(i,". Path: >"..parentT[i].."<")
  432. obj2 = obj2+1
  433. createlog(i..". Path: >"..parentT[i].."<",obj2,Color3.new(math.random(),math.random(),math.random()))
  434. end
  435. parentT = {}
  436. end)
  437. end
  438. elseif obj[i].ClassName == "RemoteEvent" then
  439. obj2 = obj2+1
  440. createlog(obj[i].Name,obj2)
  441.  
  442. end
  443. end
  444. obj2 = obj2+1
  445. createlog("GUI Should work good",obj2,Color3.new(85, 255, 255),Color3.new(255, 255, 255))
Advertisement
Add Comment
Please, Sign In to add comment