Advertisement
Guest User

Untitled

a guest
Jan 19th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.78 KB | None | 0 0
  1.  
  2. local MezornosPFGui = Instance.new("ScreenGui")
  3. local gui = Instance.new("Frame")
  4. local title = Instance.new("Frame")
  5. local heading = Instance.new("TextLabel")
  6. local exit = Instance.new("TextButton")
  7. local container = Instance.new("Frame")
  8. local teamName = Instance.new("TextBox")
  9. local toggle = Instance.new("TextButton")
  10. local credits = Instance.new("TextLabel")
  11. local open = Instance.new("Frame")
  12. local openGui = Instance.new("TextButton")
  13. local errorText = Instance.new("TextLabel")
  14. local active = false
  15.  
  16.  
  17. MezornosPFGui.Name = "MezornosPFGui"
  18. MezornosPFGui.Parent = game.CoreGui
  19. MezornosPFGui.ResetOnSpawn = false
  20.  
  21. gui.Name = "gui"
  22. gui.Parent = MezornosPFGui
  23. gui.BackgroundColor3 = Color3.new(0.027451, 0.117647, 0.239216)
  24. gui.BorderSizePixel = 0
  25. gui.Position = UDim2.new(0.710329235, 0, 0.298882723, 0)
  26. gui.Selectable = true
  27. gui.Size = UDim2.new(0.246706635, 0, 0.223184347, 0)
  28. gui.Draggable = true
  29. gui.Visible = false
  30.  
  31. title.Name = "title"
  32. title.Parent = gui
  33. title.BackgroundColor3 = Color3.new(0.121569, 0.258824, 0.529412)
  34. title.BorderSizePixel = 0
  35. title.Position = UDim2.new(-2.05782698e-07, 0, 0, 0)
  36. title.Selectable = true
  37. title.Size = UDim2.new(1.00000048, 0, 0.200764447, 0)
  38. title.Draggable = true
  39.  
  40. heading.Name = "heading"
  41. heading.Parent = title
  42. heading.BackgroundColor3 = Color3.new(1, 1, 1)
  43. heading.BackgroundTransparency = 1
  44. heading.Position = UDim2.new(0.0458272807, 0, 0, 0)
  45. heading.Size = UDim2.new(0.800000012, 0, 1, 0)
  46. heading.Font = Enum.Font.GothamBlack
  47. heading.Text = "Insta-Kill GUI"
  48. heading.TextColor3 = Color3.new(0.129412, 0.901961, 0.756863)
  49. heading.TextScaled = true
  50. heading.TextSize = 14
  51. heading.TextWrapped = true
  52. heading.Draggable = true
  53.  
  54. exit.Name = "exit"
  55. exit.Parent = title
  56. exit.BackgroundColor3 = Color3.new(0.152941, 0.556863, 0.647059)
  57. exit.BorderSizePixel = 0
  58. exit.Position = UDim2.new(0.899999976, 0, 0, 0)
  59. exit.Size = UDim2.new(0.100000001, 0, 1, 0)
  60. exit.Font = Enum.Font.GothamBold
  61. exit.Text = "X"
  62. exit.TextColor3 = Color3.new(0.129412, 0.901961, 0.756863)
  63. exit.TextSize = 14
  64. exit.Draggable = true
  65.  
  66. container.Name = "container"
  67. container.Parent = gui
  68. container.BackgroundColor3 = Color3.new(1, 1, 1)
  69. container.BackgroundTransparency = 1
  70. container.Position = UDim2.new(-1.85179445e-07, 0, 0.200764433, 0)
  71. container.Size = UDim2.new(0.999999702, 0, 0.799235642, 0)
  72.  
  73. teamName.Name = "teamName"
  74. teamName.Parent = container
  75. teamName.BackgroundColor3 = Color3.new(0.121569, 0.258824, 0.529412)
  76. teamName.Position = UDim2.new(0.0458272956, 0, 0.140856594, 0)
  77. teamName.Size = UDim2.new(0.903717577, 0, 0.296404868, 0)
  78. teamName.Font = Enum.Font.GothamSemibold
  79. teamName.PlaceholderColor3 = Color3.new(0.129412, 0.901961, 0.756863)
  80. teamName.PlaceholderText = "Opposing Team Name"
  81. teamName.Text = ""
  82. teamName.TextColor3 = Color3.new(0.129412, 0.901961, 0.756863)
  83. teamName.TextScaled = true
  84. teamName.TextSize = 14
  85. teamName.TextWrapped = true
  86.  
  87. toggle.Name = "toggle"
  88. toggle.Parent = container
  89. toggle.BackgroundColor3 = Color3.new(0.121569, 0.258824, 0.529412)
  90. toggle.Position = UDim2.new(0.0454156399, 0, 0.518260598, 0)
  91. toggle.Size = UDim2.new(0.903999925, 0, 0.276701927, 0)
  92. toggle.Font = Enum.Font.GothamSemibold
  93. toggle.Text = "Turn On"
  94. toggle.TextColor3 = Color3.new(0.129412, 0.901961, 0.756863)
  95. toggle.TextScaled = true
  96. toggle.TextSize = 14
  97. toggle.TextWrapped = true
  98.  
  99. credits.Name = "credits"
  100. credits.Parent = container
  101. credits.BackgroundColor3 = Color3.new(1, 1, 1)
  102. credits.BackgroundTransparency = 1
  103. credits.Position = UDim2.new(0, 0, 0.895419002, 0)
  104. credits.Size = UDim2.new(0.282038718, 0, 0.100000001, 0)
  105. credits.Font = Enum.Font.GothamSemibold
  106. credits.Text = "Mezorno#2928"
  107. credits.TextColor3 = Color3.new(0.121569, 0.258824, 0.529412)
  108. credits.TextScaled = true
  109. credits.TextSize = 14
  110. credits.TextWrapped = true
  111.  
  112. open.Name = "open"
  113. open.Parent = MezornosPFGui
  114. open.BackgroundColor3 = Color3.new(0.027451, 0.117647, 0.239216)
  115. open.BorderSizePixel = 0
  116. open.Position = UDim2.new(0, 0, 0.484636843, 0)
  117. open.Size = UDim2.new(0.100000001, 0, 0.0636871532, 0)
  118.  
  119. openGui.Name = "openGui"
  120. openGui.Parent = open
  121. openGui.BackgroundColor3 = Color3.new(1, 1, 1)
  122. openGui.BackgroundTransparency = 1
  123. openGui.Size = UDim2.new(1, 0, 1, 0)
  124. openGui.Font = Enum.Font.GothamBold
  125. openGui.Text = "Open"
  126. openGui.TextColor3 = Color3.new(0.129412, 0.901961, 0.756863)
  127. openGui.TextScaled = true
  128. openGui.TextSize = 14
  129. openGui.TextWrapped = true
  130.  
  131. errorText.Name = "errorText"
  132. errorText.Parent = container
  133. errorText.BackgroundColor3 = Color3.new(0.858824, 0.176471, 0.262745)
  134. errorText.BorderSizePixel = 0
  135. errorText.Position = UDim2.new(0.206310511, 0, 0.175081193, 0)
  136. errorText.Size = UDim2.new(0.573300838, 0, 0.522806883, 0)
  137. errorText.Visible = false
  138. errorText.Font = Enum.Font.GothamSemibold
  139. errorText.Text = "Error: Enter opposing team name"
  140. errorText.TextColor3 = Color3.new(0.121569, 0.258824, 0.529412)
  141. errorText.TextScaled = true
  142. errorText.TextSize = 14
  143. errorText.TextWrapped = true
  144.  
  145.  
  146. openGui.MouseButton1Down:Connect(function()
  147. gui.Visible = true
  148. open.Visible = false
  149. end)
  150.  
  151. exit.MouseButton1Down:Connect(function()
  152. gui.Visible = false
  153. open.Visible = true
  154. end)
  155.  
  156. toggle.MouseButton1Down:Connect(function()
  157. local temp = string.lower(teamName.Text)
  158. if temp == "red ravens" or temp == "orange tigers" then
  159. active = not active
  160. if toggle.Text == "Turn On" then
  161. toggle.Text = "Turn Off"
  162. else
  163. toggle.Text = "Turn On"
  164. end
  165. else
  166. errorText.Visible = true
  167. wait(1)
  168. errorText.Visible = false
  169. end
  170. end)
  171.  
  172. game:GetService("RunService").RenderStepped:connect(function()
  173. if active == true then
  174. for i,v in pairs(game.Teams[teamName.Text]:GetPlayers())do
  175. v.Character.HumanoidRootPart.Anchored = true
  176. v.Character.HumanoidRootPart.CFrame = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(5,0,0)
  177. end
  178. end
  179. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement