Advertisement
TalkToMe

FIGHTING SIMULATOR GUI

Oct 11th, 2019
22,332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 15.52 KB | None | 0 0
  1.  
  2. --[[ Instances ]]--
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local Frame = Instance.new("Frame")
  5. local TextButton = Instance.new("TextButton")
  6. local TextButton_2 = Instance.new("TextButton")
  7. local TextButton_3 = Instance.new("TextButton")
  8. local TextButton_4 = Instance.new("TextButton")
  9. local TextButton_5 = Instance.new("TextButton")
  10. local TextButton_6 = Instance.new("TextButton")
  11. local TextButton_7 = Instance.new("TextButton")
  12. local TextButton_8 = Instance.new("TextButton")
  13. local TextButton_9 = Instance.new("TextButton")
  14. local TextButton_10 = Instance.new("TextButton")
  15. local TextButton_11 = Instance.new("TextButton")
  16. local TextButton_12 = Instance.new("TextButton")
  17. local TextButton_13 = Instance.new("TextButton")
  18. local TextLabel = Instance.new("TextLabel")
  19. local TextLabel_2 = Instance.new("TextLabel")
  20. local TextButton_14 = Instance.new("TextButton")
  21. local TextButton_15 = Instance.new("TextButton")
  22. --[[ Properties ]]--
  23. Frame.Active = true
  24. Frame.Draggable = true
  25. --[[ Properties ]]--
  26. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  27. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  28.  
  29. Frame.Parent = ScreenGui
  30. Frame.BackgroundColor3 = Color3.new(0.227451, 0, 0.686275)
  31. Frame.Position = UDim2.new(0.206150308, 0, 0.207171321, 0)
  32. Frame.Size = UDim2.new(0, 448, 0, 290)
  33.  
  34. TextButton.Parent = Frame
  35. TextButton.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
  36. TextButton.BorderColor3 = Color3.new(0, 0, 0)
  37. TextButton.BorderSizePixel = 0
  38. TextButton.Position = UDim2.new(0.939732075, 0, 0, 0)
  39. TextButton.Size = UDim2.new(0, 27, 0, 27)
  40. TextButton.Font = Enum.Font.SciFi
  41. TextButton.Text = "X"
  42. TextButton.TextColor3 = Color3.new(1, 1, 1)
  43. TextButton.TextSize = 20
  44.  
  45.  
  46. TextButton_2.Parent = Frame
  47. TextButton_2.BackgroundColor3 = Color3.new(0.501961, 0, 1)
  48. TextButton_2.Position = UDim2.new(0.0514969155, 0, 0.124082074, 0)
  49. TextButton_2.Size = UDim2.new(0, 82, 0, 41)
  50. TextButton_2.Font = Enum.Font.SciFi
  51. TextButton_2.Text = "SELL"
  52. TextButton_2.TextColor3 = Color3.new(1, 0.333333, 1)
  53. TextButton_2.TextSize = 24
  54. TextButton_2.TextStrokeTransparency = 0.40000000596046
  55. TextButton_2.MouseButton1Click:connect(function()
  56.      local me = game.Players.LocalPlayer.Character
  57.  
  58.  
  59.  
  60. me.HumanoidRootPart.CFrame = CFrame.new(57.19, 2.9999, -20.798)
  61. end)
  62.  
  63. TextButton_3.Parent = Frame
  64. TextButton_3.BackgroundColor3 = Color3.new(0.501961, 0, 1)
  65. TextButton_3.BorderSizePixel = 0
  66. TextButton_3.Position = UDim2.new(0.297032624, 0, 0.124082074, 0)
  67. TextButton_3.Size = UDim2.new(0, 82, 0, 41)
  68. TextButton_3.Font = Enum.Font.SciFi
  69. TextButton_3.Text = "SHOP"
  70. TextButton_3.TextColor3 = Color3.new(1, 0.333333, 1)
  71. TextButton_3.TextSize = 24
  72. TextButton_3.TextStrokeTransparency = 0.40000000596046
  73. TextButton_3.MouseButton1Click:connect(function()
  74.      local me = game.Players.LocalPlayer.Character
  75.  
  76.  
  77.  
  78. me.HumanoidRootPart.CFrame = CFrame.new(8.152, 3.168, -1.03)
  79. end)
  80.  
  81.  
  82. TextButton_4.Parent = Frame
  83. TextButton_4.BackgroundColor3 = Color3.new(0.501961, 0, 1)
  84. TextButton_4.BorderSizePixel = 0
  85. TextButton_4.Position = UDim2.new(0.533639729, 0, 0.124082066, 0)
  86. TextButton_4.Size = UDim2.new(0, 82, 0, 41)
  87. TextButton_4.Font = Enum.Font.SciFi
  88. TextButton_4.Text = "REWARD"
  89. TextButton_4.TextColor3 = Color3.new(1, 0.333333, 1)
  90. TextButton_4.TextSize = 22
  91. TextButton_4.TextStrokeTransparency = 0.40000000596046
  92. TextButton_4.MouseButton1Click:connect(function()
  93.      local me = game.Players.LocalPlayer.Character
  94.  
  95.  
  96.  
  97. me.HumanoidRootPart.CFrame = CFrame.new(40.79, 2.9999, 25.289)
  98. end)
  99.  
  100.  
  101. TextButton_5.Parent = Frame
  102. TextButton_5.BackgroundColor3 = Color3.new(0.501961, 0, 1)
  103. TextButton_5.BorderSizePixel = 0
  104. TextButton_5.Position = UDim2.new(0.785871863, 0, 0.124082074, 0)
  105. TextButton_5.Size = UDim2.new(0, 82, 0, 41)
  106. TextButton_5.Font = Enum.Font.SciFi
  107. TextButton_5.Text = "REWARD+"
  108. TextButton_5.TextColor3 = Color3.new(1, 0.333333, 1)
  109. TextButton_5.TextSize = 19
  110. TextButton_5.TextStrokeTransparency = 0.40000000596046
  111. TextButton_5.MouseButton1Click:connect(function()
  112.      local me = game.Players.LocalPlayer.Character
  113.  
  114.  
  115.  
  116. me.HumanoidRootPart.CFrame = CFrame.new(-31.52, 2.9999, 27.08)
  117. end)
  118.  
  119. TextButton_6.Parent = Frame
  120. TextButton_6.BackgroundColor3 = Color3.new(0.501961, 0, 1)
  121. TextButton_6.BorderSizePixel = 0
  122. TextButton_6.Position = UDim2.new(0.785871863, 0, 0.331894338, 0)
  123. TextButton_6.Size = UDim2.new(0, 82, 0, 41)
  124. TextButton_6.Font = Enum.Font.SciFi
  125. TextButton_6.Text = "GYM"
  126. TextButton_6.TextColor3 = Color3.new(1, 0.333333, 1)
  127. TextButton_6.TextSize = 24
  128. TextButton_6.TextStrokeTransparency = 0.40000000596046
  129. TextButton_6.MouseButton1Click:connect(function()
  130.      local me = game.Players.LocalPlayer.Character
  131.  
  132.  
  133.  
  134. me.HumanoidRootPart.CFrame = CFrame.new(-230.18, 4.00, 106.5496)
  135. end)
  136.  
  137. TextButton_7.Parent = Frame
  138. TextButton_7.BackgroundColor3 = Color3.new(0.501961, 0, 1)
  139. TextButton_7.BorderSizePixel = 0
  140. TextButton_7.Position = UDim2.new(0.785871863, 0, 0.544487834, 0)
  141. TextButton_7.Size = UDim2.new(0, 82, 0, 41)
  142. TextButton_7.Font = Enum.Font.SciFi
  143. TextButton_7.Text = "BUILDING 3"
  144. TextButton_7.TextColor3 = Color3.new(1, 0.333333, 1)
  145. TextButton_7.TextSize = 18
  146. TextButton_7.TextStrokeTransparency = 0.40000000596046
  147. TextButton_7.MouseButton1Click:connect(function()
  148.      local me = game.Players.LocalPlayer.Character
  149.  
  150.  
  151.  
  152. me.HumanoidRootPart.CFrame = CFrame.new(-431.742, 227.99, 293.808)
  153. end)
  154.  
  155. TextButton_8.Parent = Frame
  156. TextButton_8.BackgroundColor3 = Color3.new(0.501961, 0, 1)
  157. TextButton_8.BorderSizePixel = 0
  158. TextButton_8.Position = UDim2.new(0.531407595, 0, 0.544487834, 0)
  159. TextButton_8.Size = UDim2.new(0, 82, 0, 41)
  160. TextButton_8.Font = Enum.Font.SciFi
  161. TextButton_8.Text = "BUILDING 2"
  162. TextButton_8.TextColor3 = Color3.new(1, 0.333333, 1)
  163. TextButton_8.TextSize = 17
  164. TextButton_8.TextStrokeTransparency = 0.40000000596046
  165. TextButton_8.MouseButton1Click:connect(function()
  166.      local me = game.Players.LocalPlayer.Character
  167.  
  168.  
  169.  
  170. me.HumanoidRootPart.CFrame = CFrame.new(36.29, 230.13, 232.9)
  171. end)
  172.  
  173. TextButton_9.Parent = Frame
  174. TextButton_9.BackgroundColor3 = Color3.new(0.501961, 0, 1)
  175. TextButton_9.BorderSizePixel = 0
  176. TextButton_9.Position = UDim2.new(0.533639729, 0, 0.329326749, 0)
  177. TextButton_9.Size = UDim2.new(0, 82, 0, 41)
  178. TextButton_9.Font = Enum.Font.SciFi
  179. TextButton_9.Text = "SPAWN"
  180. TextButton_9.TextColor3 = Color3.new(1, 0.333333, 1)
  181. TextButton_9.TextSize = 24
  182. TextButton_9.TextStrokeTransparency = 0.40000000596046
  183. TextButton_9.MouseButton1Click:connect(function()
  184.      local me = game.Players.LocalPlayer.Character
  185.  
  186.  
  187.  
  188. me.HumanoidRootPart.CFrame = CFrame.new(12.322, 3.168, -28.985)
  189. end)
  190.  
  191. TextButton_10.Parent = Frame
  192. TextButton_10.BackgroundColor3 = Color3.new(0.501961, 0, 1)
  193. TextButton_10.BorderSizePixel = 0
  194. TextButton_10.Position = UDim2.new(0.297032624, 0, 0.331894308, 0)
  195. TextButton_10.Size = UDim2.new(0, 82, 0, 41)
  196. TextButton_10.Font = Enum.Font.SciFi
  197. TextButton_10.Text = "BOSS"
  198. TextButton_10.TextColor3 = Color3.new(1, 0.333333, 1)
  199. TextButton_10.TextSize = 24
  200. TextButton_10.TextStrokeTransparency = 0.40000000596046
  201. TextButton_10.MouseButton1Click:connect(function()
  202.      local me = game.Players.LocalPlayer.Character
  203.  
  204.  
  205.  
  206. me.HumanoidRootPart.CFrame = CFrame.new(17.162, 9.600, -254.80)
  207. end)
  208.  
  209. TextButton_11.Parent = Frame
  210. TextButton_11.BackgroundColor3 = Color3.new(0.501961, 0, 1)
  211. TextButton_11.BorderSizePixel = 0
  212. TextButton_11.Position = UDim2.new(0.297032624, 0, 0.544487834, 0)
  213. TextButton_11.Size = UDim2.new(0, 82, 0, 41)
  214. TextButton_11.Font = Enum.Font.SciFi
  215. TextButton_11.Text = "BUILDING 1"
  216. TextButton_11.TextColor3 = Color3.new(1, 0.333333, 1)
  217. TextButton_11.TextSize = 19
  218. TextButton_11.TextStrokeTransparency = 0.40000000596046
  219. TextButton_11.MouseButton1Click:connect(function()
  220.      local me = game.Players.LocalPlayer.Character
  221.  
  222.  
  223.  
  224. me.HumanoidRootPart.CFrame = CFrame.new(415.461, 208.948, 435.574)
  225. end)
  226.  
  227. TextButton_12.Parent = Frame
  228. TextButton_12.BackgroundColor3 = Color3.new(0.501961, 0, 1)
  229. TextButton_12.BorderSizePixel = 0
  230. TextButton_12.Position = UDim2.new(0.0514969006, 0, 0.33101359, 0)
  231. TextButton_12.Size = UDim2.new(0, 82, 0, 41)
  232. TextButton_12.Font = Enum.Font.SciFi
  233. TextButton_12.Text = "MISSION 18"
  234. TextButton_12.TextColor3 = Color3.new(1, 0.333333, 1)
  235. TextButton_12.TextSize = 18
  236. TextButton_12.TextStrokeTransparency = 0.40000000596046
  237. TextButton_12.MouseButton1Click:connect(function()
  238.      local me = game.Players.LocalPlayer.Character
  239.  
  240.  
  241.  
  242. me.HumanoidRootPart.CFrame = CFrame.new(214.31, 3.4999, 74.166)
  243. end)
  244.  
  245. TextButton_13.Parent = Frame
  246. TextButton_13.BackgroundColor3 = Color3.new(0.501961, 0, 1)
  247. TextButton_13.BorderSizePixel = 0
  248. TextButton_13.Position = UDim2.new(0.0537290424, 0, 0.544487834, 0)
  249. TextButton_13.Size = UDim2.new(0, 82, 0, 41)
  250. TextButton_13.Font = Enum.Font.SciFi
  251. TextButton_13.Text = "KING HILL"
  252. TextButton_13.TextColor3 = Color3.new(1, 0.333333, 1)
  253. TextButton_13.TextSize = 20
  254. TextButton_13.TextStrokeTransparency = 0.40000000596046
  255. TextButton_13.MouseButton1Click:connect(function()
  256.      local me = game.Players.LocalPlayer.Character
  257.  
  258.  
  259.  
  260. me.HumanoidRootPart.CFrame = CFrame.new(-223.13, 25.15, -47.48)
  261. end)
  262.  
  263. TextLabel.Parent = Frame
  264. TextLabel.BackgroundColor3 = Color3.new(0.537255, 0, 0.847059)
  265. TextLabel.BorderSizePixel = 0
  266. TextLabel.Size = UDim2.new(0, 420, 0, 27)
  267. TextLabel.Font = Enum.Font.SciFi
  268. TextLabel.Text = "FIGHT SIMULTOR GUI 2.0 BY X29C"
  269. TextLabel.TextColor3 = Color3.new(1, 0, 1)
  270. TextLabel.TextSize = 14
  271. TextLabel.TextStrokeTransparency = 0.60000002384186
  272.  
  273. TextLabel_2.Parent = TextLabel
  274. TextLabel_2.BackgroundColor3 = Color3.new(0.227451, 0, 0.686275)
  275. TextLabel_2.BorderSizePixel = 0
  276. TextLabel_2.Position = UDim2.new(0, 0, 9.90032482, 0)
  277. TextLabel_2.Size = UDim2.new(0, 448, 0, 22)
  278. TextLabel_2.Font = Enum.Font.SciFi
  279. TextLabel_2.Text = " MADE BY :     x29c#2940"
  280. TextLabel_2.TextColor3 = Color3.new(1, 0, 1)
  281. TextLabel_2.TextSize = 30
  282. TextLabel_2.TextStrokeTransparency = 0.60000002384186
  283.  
  284. TextButton_14.Parent = Frame
  285. TextButton_14.BackgroundColor3 = Color3.new(0.501961, 0, 1)
  286. TextButton_14.BorderSizePixel = 0
  287. TextButton_14.Position = UDim2.new(0.0526816249, 0, 0.713847995, 0)
  288. TextButton_14.Size = UDim2.new(0, 410, 0, 24)
  289. TextButton_14.Font = Enum.Font.SciFi
  290. TextButton_14.Text = "ESP"
  291. TextButton_14.TextColor3 = Color3.new(1, 0.333333, 1)
  292. TextButton_14.TextSize = 16
  293. TextButton_14.TextStrokeTransparency = 0.40000000596046
  294. TextButton_14.MouseButton1Click:connect(function()
  295.  
  296.                                 ALLYCOLOR = {0,255,255}     --//Color of the ESP  of people on the same team
  297.                                 ENEMYCOLOR =  {255,0,0}     --//Color of the ESP  of people on NOT the same team
  298.                                 TRANSPARENCY = 0.5          --//Transparency of the ESP
  299.                                 HEALTHBAR_ACTIVATED = true  --//Renders the Healthbar
  300. --
  301. --
  302.  
  303. --                          !!!Don't Change Anything Below Here Unless You Know What You're Doing!!!
  304.  
  305. function createFlex()
  306. -- -----------------------------------------------------------------------------------
  307. --[VARIABLES] //Changing may result in Errors!
  308. players = game:GetService("Players") --//Required for PF
  309. faces = {"Front","Back","Bottom","Left","Right","Top"} --//Every possible Enum face
  310. currentPlayer = nil --//Used for the Team-Check
  311. lplayer = players.LocalPlayer --//The LocalPlayer
  312. -- -----------------------------------------------------------------------------------
  313. players.PlayerAdded:Connect(function(p)
  314.     currentPlayer = p
  315.         p.CharacterAdded:Connect(function(character) --//For when a new Player joins the game
  316.             createESP(character)           
  317.         end)       
  318. end)
  319. -- -----------------------------------------------------------------------------------
  320. 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
  321. -- -----------------------------------------------------------------------------------
  322. function actualESP(obj)
  323.    
  324.     for i=0,5 do
  325.         surface = Instance.new("SurfaceGui",obj) --//Creates the SurfaceGui
  326.         surface.Face = Enum.NormalId[faces[i+1]] --//Adjusts the Face and chooses from the face table
  327.         surface.AlwaysOnTop = true
  328.  
  329.         frame = Instance.new("Frame",surface)   --//Creates the viewable Frame
  330.         frame.Size = UDim2.new(1,0,1,0)
  331.         frame.BorderSizePixel = 0                                              
  332.         frame.BackgroundTransparency = TRANSPARENCY
  333.             if currentPlayer.Team == players.LocalPlayer.Team then --//Checks the Players Team
  334.                     frame.BackgroundColor3 = Color3.new(ALLYCOLOR[1],ALLYCOLOR[2],ALLYCOLOR[3]) --//If in same Team                                        
  335.             else
  336.                 frame.BackgroundColor3 = Color3.new(ENEMYCOLOR[1],ENEMYCOLOR[2],ENEMYCOLOR[3])  --//If in another Team
  337.             end
  338.                                                            
  339.     end
  340. end
  341. -- -----------------------------------------------------------------------------------
  342. function createHealthbar(hrp)
  343.     board =Instance.new("BillboardGui",hrp) --//Creates the BillboardGui with HumanoidRootPart as the Parent
  344.     board.Name = "total"
  345.     board.Size = UDim2.new(1,0,1,0)
  346.     board.StudsOffset = Vector3.new(3,1,0)
  347.     board.AlwaysOnTop = true
  348.  
  349.     bar = Instance.new("Frame",board) --//Creates the red background
  350.     bar.BackgroundColor3 = Color3.new(255,0,0)
  351.     bar.BorderSizePixel = 0
  352.     bar.Size = UDim2.new(0.2,0,4,0)
  353.     bar.Name = "total2"
  354.                                                
  355.     health = Instance.new("Frame",bar) --//Creates the changing green Frame
  356.     health.BackgroundColor3 = Color3.new(0,255,0)
  357.     health.BorderSizePixel = 0
  358.     health.Size = UDim2.new(1,0,hrp.Parent.Humanoid.Health/100,0)
  359.         hrp.Parent.Humanoid.Changed:Connect(function(property) --//Triggers when any Property changed
  360.             hrp.total.total2.Frame.Size = UDim2.new(1,0,hrp.Parent.Humanoid.Health/100,0) --//Adjusts the size of the green Frame                              
  361.         end)
  362. end
  363. -- -----------------------------------------------------------------------------------
  364. function createESP(c) --//Checks and calls the proper function
  365.     bugfix = c:WaitForChild("Head") --// *Used so the children of the character arent nil.
  366.     for i,v in pairs(c:GetChildren()) do
  367.         if checkPart(v) then
  368.         actualESP(v)
  369.         end
  370.     end
  371.     if HEALTHBAR_ACTIVATED then --//If the user decided to
  372.         createHealthbar(c:WaitForChild("HumanoidRootPart")) --//Calls the function of the creation
  373.     end
  374. end
  375. -- -----------------------------------------------------------------------------------
  376. for i,people in pairs(players:GetChildren())do
  377.     if people ~= players.LocalPlayer then
  378.         currentPlayer = people
  379.                                                                 --//Used for Players already in the Game
  380.         createESP(people.Character)
  381.             people.CharacterAdded:Connect(function(character)
  382.                 createESP(character)           
  383.             end)
  384.     end
  385. end
  386. -- -----------------------------------------------------------------------------------
  387. end --//End of the entire function
  388.  
  389. createFlex() --// Does exactly that :)
  390. end)
  391.  
  392.  
  393. TextButton_17.Parent = ScreenGui
  394. TextButton_17.BackgroundColor3 = Color3.new(0.435294, 0, 0.792157)
  395. TextButton_17.Position = UDim2.new(0.855353057, 0, 0.39641434, 0)
  396. TextButton_17.Size = UDim2.new(0, 127, 0, 31)
  397. TextButton_17.Font = Enum.Font.SciFi
  398. TextButton_17.Text = "Fight Sim GUI"
  399. TextButton_17.TextColor3 = Color3.new(1, 0, 1)
  400. TextButton_17.TextSize = 17
  401. TextButton_17.TextStrokeTransparency = 0.40000000596046
  402. -- Scripts:
  403. function SCRIPT_UUKW86_FAKESCRIPT() -- TextButton.LocalScript
  404.     getfenv().script = Instance.new('LocalScript', TextButton)
  405.  
  406.     script.Parent.MouseButton1Click:Connect(function()
  407.     game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.Visible = false
  408.     end)
  409.  
  410. end
  411. coroutine.resume(coroutine.create(SCRIPT_UUKW86_FAKESCRIPT))
  412. function SCRIPT_PPSB66_FAKESCRIPT() -- TextButton_17.LocalScript
  413.     getfenv().script = Instance.new('LocalScript', TextButton_17)
  414.  
  415.     script.Parent.MouseButton1Click:Connect(function()
  416.     game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.Visible = true
  417.     end)
  418.  
  419. end
  420. coroutine.resume(coroutine.create(SCRIPT_PPSB66_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement