NaFeX

Untitled

Jan 22nd, 2021
2,025
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.39 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Main = Instance.new("Frame")
  8. local TextBox = Instance.new("TextBox")
  9. local UICorner = Instance.new("UICorner")
  10. local InfStrength = Instance.new("TextButton")
  11. local Killtarget = Instance.new("TextButton")
  12. local Flyx = Instance.new("TextButton")
  13.  
  14. --Properties:
  15.  
  16. ScreenGui.Parent = game.CoreGui
  17. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  18.  
  19. Main.Name = "Main"
  20. Main.Parent = ScreenGui
  21. Main.BackgroundColor3 = Color3.fromRGB(125, 125, 125)
  22. Main.BorderSizePixel = 0
  23. Main.Position = UDim2.new(0.394032925, 0, 0.173913047, 0)
  24. Main.Size = UDim2.new(0, 409, 0, 286)
  25.  
  26. TextBox.Parent = Main
  27. TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  28. TextBox.BorderSizePixel = 0
  29. TextBox.Position = UDim2.new(0.144254282, 0, 0.776223719, 0)
  30. TextBox.Size = UDim2.new(0, 291, 0, 50)
  31. TextBox.Font = Enum.Font.SourceSans
  32. TextBox.PlaceholderText = "TARGET"
  33. TextBox.Text = ""
  34. TextBox.TextColor3 = Color3.fromRGB(0, 0, 0)
  35. TextBox.TextSize = 14.000
  36. TextBox.FocusLost:connect(function()
  37. for i,v in pairs(game.Players:GetChildren()) do
  38. if (string.sub(string.lower(v.Name),1,string.len(TextBox.Text))) == string.lower(TextBox.Text) then
  39. TextBox.Text = v.Name
  40. end
  41. end
  42. end)
  43.  
  44. function findPlayer(name)
  45. name = name:lower()
  46. if name == 'me' then
  47. return game:GetService'Players'.LocalPlayer
  48. end
  49. for i,v in pairs(game:GetService'Players':GetPlayers()) do
  50. if v.Name:lower():find(name) == 1 then
  51. return v
  52. end
  53. end
  54. end
  55.  
  56. -- // Functions
  57.  
  58. function findPlayer(name)
  59. name = name:lower()
  60. if name == 'me' then
  61. return game:GetService'Players'.LocalPlayer
  62. end
  63. for i,v in pairs(game:GetService'Players':GetPlayers()) do
  64. if v.Name:lower():find(name) == 1 then
  65. return v
  66. end
  67. end
  68. end
  69.  
  70. UICorner.Parent = Main
  71.  
  72. InfStrength.Name = "Inf Strength"
  73. InfStrength.Parent = Main
  74. InfStrength.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  75. InfStrength.BorderSizePixel = 0
  76. InfStrength.Position = UDim2.new(0.0709046423, 0, 0.0874125883, 0)
  77. InfStrength.Size = UDim2.new(0, 162, 0, 50)
  78. InfStrength.Font = Enum.Font.SourceSans
  79. InfStrength.Text = "Inf Strength"
  80. InfStrength.TextColor3 = Color3.fromRGB(0, 0, 0)
  81. InfStrength.TextSize = 14.000
  82. InfStrength.MouseButton1Down:connect(function()
  83. local runservice = game:GetService("RunService")
  84.  
  85. runservice.Stepped:Connect(function()
  86. --made by bart#2626 nigger
  87.  
  88. local args = {
  89. [1] = game:GetService("Players").LocalPlayer.Character.Weight.Handle,
  90. [2] = 10
  91. }
  92.  
  93. game:GetService("ReplicatedStorage").addStrength:FireServer(unpack(args))
  94.  
  95.  
  96. end)
  97.  
  98. local me = game:service'Players'.LocalPlayer
  99. me.Character.Humanoid:EquipTool(me.Backpack:FindFirstChild("Weight"))
  100.  
  101. end)
  102.  
  103. Flyx.Name = "Fly (x)"
  104. Flyx.Parent = Main
  105. Flyx.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  106. Flyx.BorderSizePixel = 0
  107. Flyx.Position = UDim2.new(0.0709046423, 0, 0.318181813, 0)
  108. Flyx.Size = UDim2.new(0, 162, 0, 50)
  109. Flyx.Font = Enum.Font.SourceSans
  110. Flyx.Text = "Fly(x)"
  111. Flyx.TextColor3 = Color3.fromRGB(0, 0, 0)
  112. Flyx.TextSize = 14.000
  113. Flyx.MouseButton1Down:Connect(function()
  114. local plr = game.Players.LocalPlayer
  115. local mouse = plr:GetMouse()
  116.  
  117. localplayer = plr
  118.  
  119. if workspace:FindFirstChild("Core") then
  120. workspace.Core:Destroy()
  121. end
  122.  
  123. local Core = Instance.new("Part")
  124. Core.Name = "Core"
  125. Core.Size = Vector3.new(0.05, 0.05, 0.05)
  126.  
  127. spawn(function()
  128. Core.Parent = workspace
  129. local Weld = Instance.new("Weld", Core)
  130. Weld.Part0 = Core
  131. Weld.Part1 = localplayer.Character.LowerTorso
  132. Weld.C0 = CFrame.new(0, 0, 0)
  133. end)
  134.  
  135. workspace:WaitForChild("Core")
  136.  
  137. local torso = workspace.Core
  138. flying = true
  139. local speed=10
  140. local keys={a=false,d=false,w=false,s=false}
  141. local e1
  142. local e2
  143. local function start()
  144. local pos = Instance.new("BodyPosition",torso)
  145. local gyro = Instance.new("BodyGyro",torso)
  146. pos.Name="EPIXPOS"
  147. pos.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  148. pos.position = torso.Position
  149. gyro.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  150. gyro.cframe = torso.CFrame
  151. repeat
  152. wait()
  153. localplayer.Character.Humanoid.PlatformStand=true
  154. local new=gyro.cframe - gyro.cframe.p + pos.position
  155. if not keys.w and not keys.s and not keys.a and not keys.d then
  156. speed=5
  157. end
  158. if keys.w then
  159. new = new + workspace.CurrentCamera.CoordinateFrame.lookVector * speed
  160. speed=speed+0
  161. end
  162. if keys.s then
  163. new = new - workspace.CurrentCamera.CoordinateFrame.lookVector * speed
  164. speed=speed+0
  165. end
  166. if keys.d then
  167. new = new * CFrame.new(speed,0,0)
  168. speed=speed+0
  169. end
  170. if keys.a then
  171. new = new * CFrame.new(-speed,0,0)
  172. speed=speed+0
  173. end
  174. if speed>10 then
  175. speed=5
  176. end
  177. pos.position=new.p
  178. if keys.w then
  179. gyro.cframe = workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(-math.rad(speed*0),0,0)
  180. elseif keys.s then
  181. gyro.cframe = workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(math.rad(speed*0),0,0)
  182. else
  183. gyro.cframe = workspace.CurrentCamera.CoordinateFrame
  184. end
  185. until flying == false
  186. if gyro then gyro:Destroy() end
  187. if pos then pos:Destroy() end
  188. flying=false
  189. localplayer.Character.Humanoid.PlatformStand=false
  190. speed=10
  191. end
  192. e1=mouse.KeyDown:connect(function(key)
  193. if not torso or not torso.Parent then flying=false e1:disconnect() e2:disconnect() return end
  194. if key=="w" then
  195. keys.w=true
  196. elseif key=="s" then
  197. keys.s=true
  198. elseif key=="a" then
  199. keys.a=true
  200. elseif key=="d" then
  201. keys.d=true
  202. elseif key=="x" then
  203. if flying==true then
  204. flying=false
  205. else
  206. flying=true
  207. start()
  208. end
  209. end
  210. end)
  211. e2=mouse.KeyUp:connect(function(key)
  212. if key=="w" then
  213. keys.w=false
  214. elseif key=="s" then
  215. keys.s=false
  216. elseif key=="a" then
  217. keys.a=false
  218. elseif key=="d" then
  219. keys.d=false
  220. end
  221. end)
  222. start()
  223. end)
  224.  
  225. Killtarget.Name = "Kill target"
  226. Killtarget.Parent = Main
  227. Killtarget.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  228. Killtarget.BorderSizePixel = 0
  229. Killtarget.Position = UDim2.new(0.511002421, 0, 0.0874125883, 0)
  230. Killtarget.Size = UDim2.new(0, 162, 0, 50)
  231. Killtarget.Font = Enum.Font.SourceSans
  232. Killtarget.Text = "Kill Target"
  233. Killtarget.TextColor3 = Color3.fromRGB(0, 0, 0)
  234. Killtarget.TextSize = 14.000
  235. Killtarget.MouseButton1Down:connect(function()
  236. local me = game:service'Players'.LocalPlayer
  237. me.Character.Humanoid:EquipTool(me.Backpack:FindFirstChild("Combat"))
  238. -- kill
  239. local TargetPlr = TextBox.Text;
  240. local args = {
  241. [1] = game:GetService("Players")[TargetPlr].Character.Humanoid,
  242. [2] = 5743,
  243. [3] = game:GetService("Players")[TargetPlr].Character.UpperTorso
  244. }
  245.  
  246. game:GetService("Players").LocalPlayer.Character.Combat.combatClientScript.punched:InvokeServer(unpack(args))
  247.  
  248.  
  249. end)
  250.  
  251. local function WEGU_fake_script()
  252. local script = Instance.new('LocalScript', Main)
  253.  
  254. local Main = script.Parent
  255. local mouse = game:GetService('Players').LocalPlayer:GetMouse();
  256.  
  257. mouse.KeyDown:connect(function(key)
  258. key = key:lower()
  259. if key == 'v' then
  260. Main.Visible = not Main.Visible
  261. end
  262. end)
  263. end
  264. coroutine.wrap(WEGU_fake_script)()
  265.  
  266.  
  267.  
  268. local function KABQ_fake_script() -- Main.LocalScript
  269. local script = Instance.new('LocalScript', Main)
  270.  
  271. local UserInputService = game:GetService("UserInputService")
  272.  
  273. local gui = script.Parent
  274.  
  275. local dragging
  276. local dragInput
  277. local dragStart
  278. local startPos
  279.  
  280. local function update(input)
  281. local delta = input.Position - dragStart
  282. gui.Position = gui:TweenPosition(UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y), 'In', 'Linear', 0.2, true); -- drag speed
  283. end
  284.  
  285. gui.InputBegan:Connect(function(input)
  286. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  287. dragging = true
  288. dragStart = input.Position
  289. startPos = gui.Position
  290.  
  291. input.Changed:Connect(function()
  292. if input.UserInputState == Enum.UserInputState.End then
  293. dragging = false
  294. end
  295. end)
  296. end
  297. end)
  298.  
  299. gui.InputChanged:Connect(function(input)
  300. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  301. dragInput = input
  302. end
  303. end)
  304.  
  305. UserInputService.InputChanged:Connect(function(input)
  306. if input == dragInput and dragging then
  307. update(input)
  308. end
  309. end)
  310. end
  311. coroutine.wrap(KABQ_fake_script)()
  312.  
Add Comment
Please, Sign In to add comment