MATJASEPIC

Untitled

Oct 28th, 2020
436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.61 KB | None | 0 0
  1. --[[
  2.  
  3. This is the main script that is grabbed when public.lua is executed.
  4. When updates are tested in developer.lua and are then approved, the update
  5. will be pushed into this script and then to github.
  6.  
  7. One important thing to remember is that this is NOT the same as developer.lua
  8. and should not be used for testing updates.
  9.  
  10. THIS SCRIPT OR ANY OTHER PRIVATE SCRIPTS SHOULD NOT BE AVAILABLE TO THE PUBLIC!
  11.  
  12. ]]
  13.  
  14. --[[-Variables-]]--
  15.  
  16. --Player Variables
  17.  
  18. local Player = game:GetService("Players").LocalPlayer --Define Player
  19. local Character = Player.Character --Define Character
  20. local Backpack = Player.Backpack --Define Backpack
  21.  
  22. --Sword Variables
  23.  
  24. --Get the current tool size and grip position values
  25. local CurrentToolSize = ""
  26. local CurrentGripPos = ""
  27.  
  28. --Logging Variables
  29.  
  30. local OSTime = os.time();
  31. local Time = os.date('!*t', OSTime);
  32. local Avatar = 'https://discohook.org/static/discord-avatar.png';
  33. local Content = '';
  34.  
  35. --Value Variables
  36.  
  37. local GeneralReachCheck = "Unknown"
  38. local AuraReachCheck = "Unknown"
  39. local ExploitCheck = "Unknown"
  40. local GetMembership = "Unknown"
  41. local ColorGet = tostring(Color)
  42. local ThicknessGet = tostring(LineThickness)
  43. local TransparencyGet = tostring(Transparency)
  44. local SurfaceTransparencyGet = tostring(SurfaceTransparency)
  45. local SurfaceColorGet = tostring(SurfaceColor)
  46. local AuraSizeGet = tostring(AuraSize)
  47. local MarketPlaceService = game:GetService("MarketplaceService")
  48. local GameName = MarketPlaceService:GetProductInfo(game.PlaceId);
  49.  
  50. --Status Checks
  51.  
  52. if getgenv().GeneralReach == true then
  53. GeneralReachCheck = "Enabled"
  54. else
  55. GeneralReachCheck = "Disabled"
  56. end
  57.  
  58. if getgenv().AuraReach == true then
  59. AuraReachCheck = "Enabled"
  60. else
  61. AuraReachCheck = "Disabled"
  62. end
  63.  
  64. if Player.MembershipType == Enum.MembershipType.Premium then
  65. GetMembership = "Premium"
  66. else
  67. GetMembership = "Free"
  68. end
  69.  
  70. --Check what exploit is being used by checking if exploit specific functions exist
  71. if syn then
  72. ExploitCheck = "Synapse X"
  73. end
  74.  
  75. if PROTOSMASHER_LOADED == true then
  76. ExploitCheck = "ProtoSmasher"
  77. end
  78.  
  79. if SENTINEL_LOADED == true then
  80. ExploitCheck = "Sentinel"
  81. end
  82.  
  83. if is_sirhurt_closure then
  84. Exploit = "SirHurt"
  85. end
  86.  
  87. --End of variables
  88.  
  89. --[[-Script-]]--
  90.  
  91. --General reach
  92.  
  93. wait()
  94. if getgenv().GeneralReach == true then --If enabled then proceed with the script
  95. for i,v in pairs(Character:GetDescendants()) do
  96. if v:IsA("Tool") then
  97. for y,m in pairs(v.Handle:GetDescendants()) do --Check if a selection box already exists
  98. if m:IsA("SelectionBox") then
  99. m:Destroy() --Remove said selection box
  100. print("Successfully destroyed existing SelectionBox")
  101. end
  102. end
  103. --Set the tool size and grip position to the current tool dimensions
  104. CurrentToolSize = v.Handle.Size
  105. CurrentGripPos = v.GripPos
  106. local NewBox = Instance.new("SelectionBox", v.Handle) --Create the selectionbox
  107. --NewBox properties
  108. NewBox.Name = "NewBox"
  109. NewBox.Adornee = v.Handle --Set the selection box adornee; this allows the selection box to cover the tool
  110. NewBox.Color3 = ReachColor
  111. NewBox.LineThickness = ReachLineThickness
  112. NewBox.Transparency = ReachTransparency
  113. NewBox.SurfaceColor3 = ReachSurfaceColor
  114. NewBox.SurfaceTransparency = ReachSurfaceTransparency
  115. --Tool properties
  116. v.Handle.Massless = true --Change the massless property to true
  117. v.Handle.Size = Vector3.new(0.5, 0.5, ReachSize)
  118. v.GripPos = Vector3.new(0, 0, -1.5)
  119. v.ToolTip = "Modified using SwordTest"
  120. Character.Humanoid:UnequipTools() --We un-equip and re-equip the tool to apply changes to the tool
  121. local Tool = v --Define the current tool
  122. wait()
  123. Character.Humanoid:EquipTool(Tool) --Re-equip the tool
  124. Character.HumanoidRootPart.Anchored = true
  125. wait(0.1)
  126. Character.HumanoidRootPart.Anchored = false
  127. end
  128. end
  129. end
  130.  
  131. --Aura reach
  132.  
  133. wait()
  134. if getgenv().AuraReach == true then --If enabled then proceed with the script
  135. for r,k in pairs(Character:GetDescendants()) do
  136. if k:IsA("Tool") then
  137. for b,n in pairs(k.Handle:GetDescendants()) do
  138. if k:IsA("SelectionBox") and k.Name == "AuraBox" then
  139. k:Destroy()
  140. print("Successfully destroyed existing AuraBox")
  141. end
  142. end
  143. CurrentToolSize = k.Handle.Size
  144. CurrentGripPos = k.GripPos
  145. local AuraBox = Instance.new("SelectionBox", k.Handle)
  146. AuraBox.Name = "AuraBox"
  147. AuraBox.Adornee = k.Handle
  148. k.Handle.Massless = true
  149. k.Handle.Size = Vector3.new(AuraSize, 99, AuraSize)
  150. end
  151. end
  152. end
  153.  
  154. --Webhook Logging
  155.  
  156. --Webhook message is sent after the main script has been executed
  157. local Embed = {
  158. title = ':warning: Script Executed';
  159. url = 'https://roblox.com/games/' .. game.PlaceId; --Get the games URL
  160. footer = {
  161. text = 'SwordTest logger by Jason';
  162. };
  163. color = '7124988';
  164. author = {
  165. name = 'Spidey Bot';
  166. icon_url = 'https://discohook.org/static/discord-avatar.png';
  167. };
  168. fields = {
  169. --Logs the whole configuration that is in use
  170. {
  171. name = ':video_game: Game:';
  172. value = GameName.Name;
  173. type = 'inline'
  174. };
  175. {
  176. name = ':man: Username:';
  177. value = Player.Name;
  178. };
  179. {
  180. name = ':card_index: User Id:';
  181. value = Player.UserId;
  182. };
  183. {
  184. name = ':diamond_shape_with_a_dot_inside: User Membership:';
  185. value = GetMembership;
  186. };
  187. {
  188. name = ':wrench: JobId:';
  189. value = game.JobId;
  190. };
  191. {
  192. name = ':gear: General Reach:';
  193. value = GeneralReachCheck;
  194. };
  195. {
  196. name = ':gear: Aura Reach:';
  197. value = AuraReachCheck;
  198. };
  199. {
  200. name = ':paintbrush: Color:';
  201. value = ColorGet;
  202. };
  203. {
  204. name = ':straight_ruler: Size:';
  205. value = Size;
  206. };
  207. {
  208. name = ':yellow_circle: Line Thickness:';
  209. value = ThicknessGet;
  210. };
  211. {
  212. name = ':window: Transparency:';
  213. value = TransparencyGet;
  214. };
  215. {
  216. name = ':window: Surface Transparency:';
  217. value = SurfaceTransparencyGet;
  218. };
  219. {
  220. name = ':paintbrush: Surface Color:';
  221. value = SurfaceColorGet;
  222. };
  223. {
  224. name = ':straight_ruler: Aura Size:';
  225. value = AuraSizeGet;
  226. };
  227. {
  228. name = ':spy: Exploit:';
  229. value = ExploitCheck;
  230. };
  231. };
  232. timestamp = string.format('%d-%d-%dT%02d:%02d:%02dZ', Time.year, Time.month, Time.day, Time.hour, Time.min, Time.sec);
  233. };
  234. (syn and syn.request or http_request) { --Allows the logger to work on the majority of exploits
  235. Url = 'https://discord.com/api/webhooks/770405174816538722/DMyMmLp9cQcC0dUN-Z9JNCVIoBfud5uq2GhAfqpCVcEAoGWFpRidwK0LHAgMgTiD21xk';
  236. Method = 'POST';
  237. Headers = {
  238. ['Content-Type'] = 'application/json';
  239. };
  240. Body = game:GetService'HttpService':JSONEncode( { content = Content; embeds = { Embed } } );
  241. };
  242.  
  243. --End of script
Add Comment
Please, Sign In to add comment