Igorkot_yt

military warfare tycoon script

Aug 22nd, 2021 (edited)
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.36 KB | None | 0 0
  1. function GetPlayer(String)
  2. local Found = {}
  3. local strl = String:lower()
  4. if strl == "all" then
  5. for i,v in pairs(game.Players:GetPlayers()) do
  6. table.insert(Found,v.Name)
  7. end
  8. elseif strl == "others" then
  9. for i,v in pairs(game.Players:GetPlayers()) do
  10. if v.Name ~= game.Players.LocalPlayer.Name then
  11. table.insert(Found,v.Name)
  12. end
  13. end
  14. elseif strl == "me" then
  15. for i,v in pairs(game.Players:GetPlayers()) do
  16. if v.Name == game.Players.LocalPlayer.Name then
  17. table.insert(Found,v.Name)
  18. end
  19. end
  20. else
  21. for i,v in pairs(game.Players:GetPlayers()) do
  22. if v.Name:lower():sub(1, #String) == String:lower() then
  23. table.insert(Found,v.Name)
  24. end
  25. end
  26. end
  27. return Found
  28. end
  29.  
  30. local ScreenGui = Instance.new("ScreenGui")
  31. local Frame = Instance.new("Frame")
  32. local TextBox = Instance.new("TextBox")
  33. local killbtn = Instance.new("TextButton")
  34. local burnbtn = Instance.new("TextButton")
  35. local firebtn = Instance.new("TextButton")
  36. local TextLabel = Instance.new("TextLabel")
  37.  
  38. ScreenGui.Parent = game.CoreGui
  39. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  40.  
  41. Frame.Parent = ScreenGui
  42. Frame.Active = true
  43. Frame.Draggable = true
  44. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  45. Frame.BackgroundTransparency = 0.40000000596046
  46. Frame.Position = UDim2.new(0.356390983, 0, 0.270417422, 0)
  47. Frame.Size = UDim2.new(0, 247, 0, 181)
  48.  
  49. TextBox.Parent = Frame
  50. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  51. TextBox.BackgroundTransparency = 0.5
  52. TextBox.Position = UDim2.new(0.0275043678, 0, 0.197065845, 0)
  53. TextBox.Size = UDim2.new(0, 232, 0, 34)
  54. TextBox.Font = Enum.Font.SourceSans
  55. TextBox.Text = ""
  56. TextBox.TextColor3 = Color3.new(0, 0, 0)
  57. TextBox.TextSize = 14
  58.  
  59. killbtn.Name = "killbtn"
  60. killbtn.Parent = Frame
  61. killbtn.BackgroundColor3 = Color3.new(1, 1, 1)
  62. killbtn.BackgroundTransparency = 0.40000000596046
  63. killbtn.Position = UDim2.new(0.0639416128, 0, 0.43975535, 0)
  64. killbtn.Size = UDim2.new(0, 91, 0, 35)
  65. killbtn.Font = Enum.Font.SourceSans
  66. killbtn.Text = "Kill"
  67. killbtn.TextColor3 = Color3.new(0, 0, 0)
  68. killbtn.TextScaled = true
  69. killbtn.TextSize = 14
  70. killbtn.TextWrapped = true
  71.  
  72. burnbtn.Name = "burnbtn"
  73. burnbtn.Parent = Frame
  74. burnbtn.BackgroundColor3 = Color3.new(1, 1, 1)
  75. burnbtn.BackgroundTransparency = 0.40000000596046
  76. burnbtn.Position = UDim2.new(0.0639416128, 0, 0.733974755, 0)
  77. burnbtn.Size = UDim2.new(0, 205, 0, 36)
  78. burnbtn.Font = Enum.Font.SourceSans
  79. burnbtn.Text = "Burn"
  80. burnbtn.TextColor3 = Color3.new(0, 0, 0)
  81. burnbtn.TextScaled = true
  82. burnbtn.TextSize = 14
  83. burnbtn.TextWrapped = true
  84.  
  85. firebtn.Name = "firebtn"
  86. firebtn.Parent = Frame
  87. firebtn.BackgroundColor3 = Color3.new(1, 1, 1)
  88. firebtn.BackgroundTransparency = 0.40000000596046
  89. firebtn.Position = UDim2.new(0.529250145, 0, 0.43975535, 0)
  90. firebtn.Size = UDim2.new(0, 91, 0, 35)
  91. firebtn.Font = Enum.Font.SourceSans
  92. firebtn.Text = "Fire"
  93. firebtn.TextColor3 = Color3.new(0, 0, 0)
  94. firebtn.TextScaled = true
  95. firebtn.TextSize = 14
  96. firebtn.TextWrapped = true
  97.  
  98. TextLabel.Parent = Frame
  99. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  100. TextLabel.BackgroundTransparency = 0.60000002384186
  101. TextLabel.Size = UDim2.new(0, 247, 0, 25)
  102. TextLabel.Font = Enum.Font.SourceSans
  103. TextLabel.Text = "Military Warfare Tycoon GUI - ScriptX#3145"
  104. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  105. TextLabel.TextSize = 14
  106. -- Scripts:
  107. function SCRIPT_WZDO88_FAKESCRIPT() -- killbtn.killscript
  108. local script = Instance.new('LocalScript')
  109. script.Parent = killbtn
  110. script.Parent.MouseButton1Click:Connect(function()
  111.  
  112. if game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool") then
  113. game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool").Parent = game.Players.LocalPlayer.Backpack
  114. end
  115.  
  116. wait()
  117.  
  118. local target = GetPlayer(script.Parent.Parent.TextBox.Text)
  119.  
  120. for i,v in pairs(target) do
  121. spawn(function()
  122. local tbl_main =
  123. {
  124. game.Players[v].Character.Humanoid,
  125. game.Players[v].Character.HumanoidRootPart,
  126. 1000,
  127. Vector3.new(0,0,0),
  128. 0,
  129. 0,
  130. false
  131. }
  132. game:GetService("Players").LocalPlayer.Backpack.Handgun["GunScript_Server"].InflictTarget:FireServer(unpack(tbl_main))
  133. end)
  134. end
  135. end)
  136.  
  137. end
  138. coroutine.resume(coroutine.create(SCRIPT_WZDO88_FAKESCRIPT))
  139. function SCRIPT_QLVE78_FAKESCRIPT() -- burnbtn.burnscript
  140. local script = Instance.new('LocalScript')
  141. script.Parent = burnbtn
  142. script.Parent.MouseButton1Click:Connect(function()
  143.  
  144. if game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool") then
  145. game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool").Parent = game.Players.LocalPlayer.Backpack
  146. end
  147.  
  148. wait()
  149.  
  150. local target = GetPlayer(script.Parent.Parent.TextBox.Text)
  151.  
  152. for i,v in pairs(target) do
  153. spawn(function()
  154. for i=0,10 do
  155. wait(0.5)
  156. local tbl_main =
  157. {
  158. game.Players[v].Character.Humanoid,
  159. game.Players[v].Character.HumanoidRootPart,
  160. 10,
  161. Vector3.new(0,0,0),
  162. 0,
  163. 0,
  164. true
  165. }
  166. game:GetService("Players").LocalPlayer.Backpack.Handgun["GunScript_Server"].InflictTarget:FireServer(unpack(tbl_main))
  167. end
  168. end)
  169. end
  170. end)
  171.  
  172. end
  173. coroutine.resume(coroutine.create(SCRIPT_QLVE78_FAKESCRIPT))
  174. function SCRIPT_KCRN73_FAKESCRIPT() -- firebtn.LocalScript
  175. local script = Instance.new('LocalScript')
  176. script.Parent = firebtn
  177. script.Parent.MouseButton1Click:Connect(function()
  178.  
  179. if game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool") then
  180. game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool").Parent = game.Players.LocalPlayer.Backpack
  181. end
  182.  
  183. wait()
  184.  
  185. local target = GetPlayer(script.Parent.Parent.TextBox.Text)
  186.  
  187. for i,v in pairs(target) do
  188. spawn(function()
  189. local tbl_main =
  190. {
  191. game.Players[v].Character.Humanoid,
  192. game.Players[v].Character.HumanoidRootPart,
  193. 0,
  194. Vector3.new(0,0,0),
  195. 0,
  196. 0,
  197. true
  198. }
  199. game:GetService("Players").LocalPlayer.Backpack.Handgun["GunScript_Server"].InflictTarget:FireServer(unpack(tbl_main))
  200. end)
  201. end
  202. end)
  203.  
  204. end
  205. coroutine.resume(coroutine.create(SCRIPT_KCRN73_FAKESCRIPT))
Add Comment
Please, Sign In to add comment