Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.61 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local dahgui = Instance.new("ScreenGui")
  7. local OpenMain = Instance.new("Frame")
  8. local Open = Instance.new("TextButton")
  9. local Main = Instance.new("Frame")
  10. local BeautyA = Instance.new("Frame")
  11. local tutorial = Instance.new("TextLabel")
  12. local BeautyB = Instance.new("Frame")
  13. local Credits = Instance.new("TextLabel")
  14. local fly = Instance.new("TextButton")
  15. local ij = Instance.new("TextButton")
  16. local iy = Instance.new("TextButton")
  17. local Close = Instance.new("TextButton")
  18. local mkb = Instance.new("TextButton")
  19. local mbb = Instance.new("TextButton")
  20. local noclip = Instance.new("TextButton")
  21. local esp = Instance.new("TextButton")
  22. local qtp = Instance.new("TextButton")
  23.  
  24. --Properties:
  25.  
  26. dahgui.Name = "dahgui"
  27. dahgui.Parent = game.CoreGui
  28. dahgui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  29.  
  30. OpenMain.Name = "OpenMain"
  31. OpenMain.Parent = dahgui
  32. OpenMain.Active = true
  33. OpenMain.BackgroundColor3 = Color3.fromRGB(170, 0, 255)
  34. OpenMain.BorderSizePixel = 0
  35. OpenMain.Position = UDim2.new(-0.00127063831, 0, 0.730283916, 0)
  36. OpenMain.Size = UDim2.new(0, 97, 0, 32)
  37.  
  38. Open.Name = "Open"
  39. Open.Parent = OpenMain
  40. Open.BackgroundColor3 = Color3.fromRGB(170, 0, 255)
  41. Open.BorderSizePixel = 0
  42. Open.Position = UDim2.new(0.0618559048, 0, 0.09375, 0)
  43. Open.Size = UDim2.new(0, 84, 0, 25)
  44. Open.Font = Enum.Font.Cartoon
  45. Open.Text = "Open"
  46. Open.TextColor3 = Color3.fromRGB(255, 255, 255)
  47. Open.TextSize = 30.000
  48. Open.MouseButton1Down:connect(function()
  49. Main.Visible = true
  50. OpenMain.Visible = false
  51. end)
  52.  
  53. Main.Name = "Main"
  54. Main.Parent = dahgui
  55. Main.Active = true
  56. Main.BackgroundColor3 = Color3.fromRGB(71, 71, 71)
  57. Main.BorderSizePixel = 0
  58. Main.Position = UDim2.new(0.185514614, 0, 0.242902219, 0)
  59. Main.Size = UDim2.new(0, 495, 0, 326)
  60. Main.Visible = false
  61. Main.Draggable = true
  62.  
  63.  
  64. BeautyA.Name = "BeautyA"
  65. BeautyA.Parent = Main
  66. BeautyA.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
  67. BeautyA.BorderColor3 = Color3.fromRGB(16, 16, 16)
  68. BeautyA.BorderSizePixel = 0
  69. BeautyA.Size = UDim2.new(0, 495, 0, 37)
  70.  
  71. tutorial.Name = "tutorial"
  72. tutorial.Parent = BeautyA
  73. tutorial.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  74. tutorial.BackgroundTransparency = 1.000
  75. tutorial.BorderSizePixel = 0
  76. tutorial.Size = UDim2.new(0, 495, 0, 37)
  77. tutorial.Font = Enum.Font.SciFi
  78. tutorial.Text = "Buttons:for Fly - X.for Noclip - V"
  79. tutorial.TextColor3 = Color3.fromRGB(0, 0, 0)
  80. tutorial.TextSize = 20.000
  81.  
  82. BeautyB.Name = "BeautyB"
  83. BeautyB.Parent = Main
  84. BeautyB.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
  85. BeautyB.BorderColor3 = Color3.fromRGB(16, 16, 16)
  86. BeautyB.BorderSizePixel = 0
  87. BeautyB.Position = UDim2.new(0, 0, 0.8865031, 0)
  88. BeautyB.Size = UDim2.new(0, 495, 0, 37)
  89.  
  90. Credits.Name = "Credits"
  91. Credits.Parent = BeautyB
  92. Credits.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  93. Credits.BackgroundTransparency = 1.000
  94. Credits.BorderSizePixel = 0
  95. Credits.Size = UDim2.new(0, 495, 0, 37)
  96. Credits.Font = Enum.Font.SciFi
  97. Credits.Text = "Created by corehemid & la3.SK1#7505"
  98. Credits.TextColor3 = Color3.fromRGB(0, 0, 0)
  99. Credits.TextSize = 20.000
  100.  
  101. fly.Name = "fly"
  102. fly.Parent = Main
  103. fly.BackgroundColor3 = Color3.fromRGB(170, 255, 127)
  104. fly.BorderSizePixel = 0
  105. fly.Position = UDim2.new(0.0606060587, 0, 0.171779141, 0)
  106. fly.Size = UDim2.new(0, 117, 0, 40)
  107. fly.Font = Enum.Font.Cartoon
  108. fly.Text = "Fly"
  109. fly.TextColor3 = Color3.fromRGB(0, 0, 0)
  110. fly.TextSize = 20.000
  111. fly.MouseButton1Down:connect(function()
  112. local plr = game.Players.LocalPlayer
  113. local mouse = plr:GetMouse()
  114.  
  115. localplayer = plr
  116.  
  117. if workspace:FindFirstChild("Core") then
  118. workspace.Core:Destroy()
  119. end
  120.  
  121. local Core = Instance.new("Part")
  122. Core.Name = "Core"
  123. Core.Size = Vector3.new(0.05, 0.05, 0.05)
  124.  
  125. spawn(function()
  126. Core.Parent = workspace
  127. local Weld = Instance.new("Weld", Core)
  128. Weld.Part0 = Core
  129. Weld.Part1 = localplayer.Character.LowerTorso
  130. Weld.C0 = CFrame.new(0, 0, 0)
  131. end)
  132.  
  133. workspace:WaitForChild("Core")
  134.  
  135. local torso = workspace.Core
  136. flying = true
  137. local speed=10
  138. local keys={a=false,d=false,w=false,s=false}
  139. local e1
  140. local e2
  141. local function start()
  142. local pos = Instance.new("BodyPosition",torso)
  143. local gyro = Instance.new("BodyGyro",torso)
  144. pos.Name="EPIXPOS"
  145. pos.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  146. pos.position = torso.Position
  147. gyro.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  148. gyro.cframe = torso.CFrame
  149. repeat
  150. wait()
  151. localplayer.Character.Humanoid.PlatformStand=true
  152. local new=gyro.cframe - gyro.cframe.p + pos.position
  153. if not keys.w and not keys.s and not keys.a and not keys.d then
  154. speed=5
  155. end
  156. if keys.w then
  157. new = new + workspace.CurrentCamera.CoordinateFrame.lookVector * speed
  158. speed=speed+0
  159. end
  160. if keys.s then
  161. new = new - workspace.CurrentCamera.CoordinateFrame.lookVector * speed
  162. speed=speed+0
  163. end
  164. if keys.d then
  165. new = new * CFrame.new(speed,0,0)
  166. speed=speed+0
  167. end
  168. if keys.a then
  169. new = new * CFrame.new(-speed,0,0)
  170. speed=speed+0
  171. end
  172. if speed>10 then
  173. speed=5
  174. end
  175. pos.position=new.p
  176. if keys.w then
  177. gyro.cframe = workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(-math.rad(speed*0),0,0)
  178. elseif keys.s then
  179. gyro.cframe = workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(math.rad(speed*0),0,0)
  180. else
  181. gyro.cframe = workspace.CurrentCamera.CoordinateFrame
  182. end
  183. until flying == false
  184. if gyro then gyro:Destroy() end
  185. if pos then pos:Destroy() end
  186. flying=false
  187. localplayer.Character.Humanoid.PlatformStand=false
  188. speed=10
  189. end
  190. e1=mouse.KeyDown:connect(function(key)
  191. if not torso or not torso.Parent then flying=false e1:disconnect() e2:disconnect() return end
  192. if key=="w" then
  193. keys.w=true
  194. elseif key=="s" then
  195. keys.s=true
  196. elseif key=="a" then
  197. keys.a=true
  198. elseif key=="d" then
  199. keys.d=true
  200. elseif key=="x" then
  201. if flying==true then
  202. flying=false
  203. else
  204. flying=true
  205. start()
  206. end
  207. end
  208. end)
  209. e2=mouse.KeyUp:connect(function(key)
  210. if key=="w" then
  211. keys.w=false
  212. elseif key=="s" then
  213. keys.s=false
  214. elseif key=="a" then
  215. keys.a=false
  216. elseif key=="d" then
  217. keys.d=false
  218. end
  219. end)
  220. start()
  221. end)
  222.  
  223. ij.Name = "i.j"
  224. ij.Parent = Main
  225. ij.BackgroundColor3 = Color3.fromRGB(170, 255, 127)
  226. ij.BorderSizePixel = 0
  227. ij.Position = UDim2.new(0.703030348, 0, 0.171779141, 0)
  228. ij.Size = UDim2.new(0, 117, 0, 40)
  229. ij.Font = Enum.Font.Cartoon
  230. ij.Text = "Infinite Jump"
  231. ij.TextColor3 = Color3.fromRGB(0, 0, 0)
  232. ij.TextSize = 20.000
  233. ij.MouseButton1Down:connect(function()
  234. InfiniteJumpEnabled = true
  235. game:GetService("UserInputService").JumpRequest:connect(function()
  236. if InfiniteJumpEnabled then
  237. game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")
  238. end
  239. end)
  240. end)
  241.  
  242. ij.Name = "i.j"
  243. ij.Parent = Main
  244. ij.BackgroundColor3 = Color3.fromRGB(170, 255, 127)
  245. ij.BorderSizePixel = 0
  246. ij.Position = UDim2.new(0.703030348, 0, 0.171779141, 0)
  247. ij.Size = UDim2.new(0, 117, 0, 40)
  248. ij.Font = Enum.Font.Cartoon
  249. ij.Text = "Infinite Jump"
  250. ij.TextColor3 = Color3.fromRGB(0, 0, 0)
  251. ij.TextSize = 20.000
  252. ij.MouseButton1Down:connect(function()
  253. InfiniteJumpEnabled = true
  254. game:GetService("UserInputService").JumpRequest:connect(function()
  255. if InfiniteJumpEnabled then
  256. game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")
  257. end
  258. end)
  259. end)
  260.  
  261. iy.Name = "i.y"
  262. iy.Parent = Main
  263. iy.BackgroundColor3 = Color3.fromRGB(170, 255, 127)
  264. iy.BorderSizePixel = 0
  265. iy.Position = UDim2.new(0.0606060624, 0, 0.361963183, 0)
  266. iy.Size = UDim2.new(0, 117, 0, 40)
  267. iy.Font = Enum.Font.Cartoon
  268. iy.Text = "Infinite Yield"
  269. iy.TextColor3 = Color3.fromRGB(0, 0, 0)
  270. iy.TextSize = 20.000
  271. iy.MouseButton1Down:connect(function()
  272. loadstring(game:HttpGet(('https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source'),true))()
  273. end)
  274.  
  275. Close.Name = "Close"
  276. Close.Parent = Main
  277. Close.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
  278. Close.BorderSizePixel = 0
  279. Close.Position = UDim2.new(0.872727275, 0, 0, 0)
  280. Close.Size = UDim2.new(0, 63, 0, 37)
  281. Close.Font = Enum.Font.Cartoon
  282. Close.Text = "X"
  283. Close.TextColor3 = Color3.fromRGB(0, 0, 0)
  284. Close.TextSize = 30.000
  285. Close.TextWrapped = true
  286. Close.MouseButton1Down:connect(function()
  287. OpenMain.Visible = true
  288. Main.Visible = false
  289. end)
  290.  
  291. mkb.Name = "mkb"
  292. mkb.Parent = Main
  293. mkb.BackgroundColor3 = Color3.fromRGB(170, 255, 127)
  294. mkb.BorderSizePixel = 0
  295. mkb.Position = UDim2.new(0.703030288, 0, 0.361963212, 0)
  296. mkb.Size = UDim2.new(0, 117, 0, 40)
  297. mkb.Font = Enum.Font.Cartoon
  298. mkb.Text = "Make knife big"
  299. mkb.TextColor3 = Color3.fromRGB(0, 0, 0)
  300. mkb.TextSize = 18.000
  301. mkb.MouseButton1Down:connect(function()
  302. game.Players.LocalPlayer.Backpack["[Knife]"].Handle.Size = Vector3.new(50, 50, 50)
  303. end)
  304.  
  305. mbb.Name = "mbb"
  306. mbb.Parent = Main
  307. mbb.BackgroundColor3 = Color3.fromRGB(170, 255, 127)
  308. mbb.BorderSizePixel = 0
  309. mbb.Position = UDim2.new(0.703030288, 0, 0.549079716, 0)
  310. mbb.Size = UDim2.new(0, 117, 0, 40)
  311. mbb.Font = Enum.Font.Cartoon
  312. mbb.Text = "Make bat big"
  313. mbb.TextColor3 = Color3.fromRGB(0, 0, 0)
  314. mbb.TextSize = 18.000
  315. mbb.MouseButton1Down:connect(function()
  316. game.Players.LocalPlayer.Backpack["[Bat]"].Handle.Size = Vector3.new(50, 50, 50)
  317. end)
  318.  
  319. noclip.Name = "noclip"
  320. noclip.Parent = Main
  321. noclip.BackgroundColor3 = Color3.fromRGB(170, 255, 127)
  322. noclip.BorderSizePixel = 0
  323. noclip.Position = UDim2.new(0.0606060624, 0, 0.549079776, 0)
  324. noclip.Size = UDim2.new(0, 117, 0, 40)
  325. noclip.Font = Enum.Font.Cartoon
  326. noclip.Text = "Noclip (V)"
  327. noclip.TextColor3 = Color3.fromRGB(0, 0, 0)
  328. noclip.TextSize = 20.000
  329. noclip.MouseButton1Down:connect(function()
  330. noclip = false
  331. game:GetService('RunService').Stepped:connect(function()
  332. if noclip then
  333. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  334. end
  335. end)
  336. plr = game.Players.LocalPlayer
  337. mouse = plr:GetMouse()
  338. mouse.KeyDown:connect(function(key)
  339.  
  340. if key == "v" then
  341. noclip = not noclip
  342. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  343. end
  344. end)
  345. print('Loaded')
  346. print('Press "V" to noclip')
  347. end)
  348.  
  349.  
  350.  
  351. esp.Name = "esp"
  352. esp.Parent = Main
  353. esp.BackgroundColor3 = Color3.fromRGB(170, 255, 127)
  354. esp.BorderSizePixel = 0
  355. esp.Position = UDim2.new(0.0606060624, 0, 0.733128786, 0)
  356. esp.Size = UDim2.new(0, 117, 0, 40)
  357. esp.Font = Enum.Font.Cartoon
  358. esp.Text = "ESP"
  359. esp.TextColor3 = Color3.fromRGB(0, 0, 0)
  360. esp.TextSize = 20.000
  361. esp.MouseButton1Down:connect(function()
  362. -- -----------------------------------
  363. -- ___ _ _ _ --
  364. -- / __| ___| |_| |_(_)_ _ __ _ ___--
  365. -- \__ \/ -_) _| _| | ' \/ _` (_-<--
  366. -- |___/\___|\__|\__|_|_||_\__, /__/--
  367. -- |___/ --
  368. -- -----------------------------------
  369. -- -----------------------------------
  370. ALLYCOLOR = {0,255,255} --//Color of the ESP of people on the same team
  371. ENEMYCOLOR = {255,0,0} --//Color of the ESP of people on NOT the same team
  372. TRANSPARENCY = 0.5 --//Transparency of the ESP
  373. HEALTHBAR_ACTIVATED = true --//Renders the Healthbar
  374. --
  375. --
  376.  
  377. -- !!!Don't Change Anything Below Here Unless You Know What You're Doing!!!
  378.  
  379. function createFlex()
  380. -- -----------------------------------------------------------------------------------
  381. --[VARIABLES] //Changing may result in Errors!
  382. players = game:GetService("Players") --//Required for PF
  383. faces = {"Front","Back","Bottom","Left","Right","Top"} --//Every possible Enum face
  384. currentPlayer = nil --//Used for the Team-Check
  385. lplayer = players.LocalPlayer --//The LocalPlayer
  386. -- -----------------------------------------------------------------------------------
  387. players.PlayerAdded:Connect(function(p)
  388. currentPlayer = p
  389. p.CharacterAdded:Connect(function(character) --//For when a new Player joins the game
  390. createESP(character)
  391. end)
  392. end)
  393. -- -----------------------------------------------------------------------------------
  394. function checkPart(obj) if (obj:IsA("Part") or obj:IsA("MeshPart")) and obj.Name~="HumanoidRootPart" then return true end end --//Check if the Part is suitable
  395. -- -----------------------------------------------------------------------------------
  396. function actualESP(obj)
  397.  
  398. for i=0,5 do
  399. surface = Instance.new("SurfaceGui",obj) --//Creates the SurfaceGui
  400. surface.Face = Enum.NormalId[faces[i+1]] --//Adjusts the Face and chooses from the face table
  401. surface.AlwaysOnTop = true
  402.  
  403. frame = Instance.new("Frame",surface) --//Creates the viewable Frame
  404. frame.Size = UDim2.new(1,0,1,0)
  405. frame.BorderSizePixel = 0
  406. frame.BackgroundTransparency = TRANSPARENCY
  407. if currentPlayer.Team == players.LocalPlayer.Team then --//Checks the Players Team
  408. frame.BackgroundColor3 = Color3.new(ALLYCOLOR[1],ALLYCOLOR[2],ALLYCOLOR[3]) --//If in same Team
  409. else
  410. frame.BackgroundColor3 = Color3.new(ENEMYCOLOR[1],ENEMYCOLOR[2],ENEMYCOLOR[3]) --//If in another Team
  411. end
  412.  
  413. end
  414. end
  415. -- -----------------------------------------------------------------------------------
  416. function createHealthbar(hrp)
  417. board =Instance.new("BillboardGui",hrp) --//Creates the BillboardGui with HumanoidRootPart as the Parent
  418. board.Name = "total"
  419. board.Size = UDim2.new(1,0,1,0)
  420. board.StudsOffset = Vector3.new(3,1,0)
  421. board.AlwaysOnTop = true
  422.  
  423. bar = Instance.new("Frame",board) --//Creates the red background
  424. bar.BackgroundColor3 = Color3.new(255,0,0)
  425. bar.BorderSizePixel = 0
  426. bar.Size = UDim2.new(0.2,0,4,0)
  427. bar.Name = "total2"
  428.  
  429. health = Instance.new("Frame",bar) --//Creates the changing green Frame
  430. health.BackgroundColor3 = Color3.new(0,255,0)
  431. health.BorderSizePixel = 0
  432. health.Size = UDim2.new(1,0,hrp.Parent.Humanoid.Health/100,0)
  433. hrp.Parent.Humanoid.Changed:Connect(function(property) --//Triggers when any Property changed
  434. hrp.total.total2.Frame.Size = UDim2.new(1,0,hrp.Parent.Humanoid.Health/100,0) --//Adjusts the size of the green Frame
  435. end)
  436. end
  437. -- -----------------------------------------------------------------------------------
  438. function createESP(c) --//Checks and calls the proper function
  439. bugfix = c:WaitForChild("Head") --// *Used so the children of the character arent nil.
  440. for i,v in pairs(c:GetChildren()) do
  441. if checkPart(v) then
  442. actualESP(v)
  443. end
  444. end
  445. if HEALTHBAR_ACTIVATED then --//If the user decided to
  446. createHealthbar(c:WaitForChild("HumanoidRootPart")) --//Calls the function of the creation
  447. end
  448. end
  449. -- -----------------------------------------------------------------------------------
  450. for i,people in pairs(players:GetChildren())do
  451. if people ~= players.LocalPlayer then
  452. currentPlayer = people
  453. --//Used for Players already in the Game
  454. createESP(people.Character)
  455. people.CharacterAdded:Connect(function(character)
  456. createESP(character)
  457. end)
  458. end
  459. end
  460. -- -----------------------------------------------------------------------------------
  461. end --//End of the entire function
  462.  
  463. createFlex() --// Does exactly that :)
  464. end)
  465.  
  466. qtp.Name = "qtp"
  467. qtp.Parent = Main
  468. qtp.BackgroundColor3 = Color3.fromRGB(170, 255, 127)
  469. qtp.BorderSizePixel = 0
  470. qtp.Position = UDim2.new(0.703030288, 0, 0.733128846, 0)
  471. qtp.Size = UDim2.new(0, 117, 0, 40)
  472. qtp.Font = Enum.Font.Cartoon
  473. qtp.Text = "Q for TP"
  474. qtp.TextColor3 = Color3.fromRGB(0, 0, 0)
  475. qtp.TextSize = 20.000
  476. qtp.MouseButton1Down:connect(function()
  477. plr = game.Players.LocalPlayer
  478.  
  479. hum = plr.Character.HumanoidRootPart
  480.  
  481. mouse = plr:GetMouse()
  482.  
  483.  
  484.  
  485. mouse.KeyDown:connect(function(key)
  486.  
  487. if key == "q" then
  488.  
  489. if mouse.Target then
  490.  
  491. hum.CFrame = CFrame.new(mouse.Hit.x, mouse.Hit.y + 5, mouse.Hit.z)
  492.  
  493. end
  494.  
  495. end
  496. end)
  497. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement