Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
674
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.23 KB | None | 0 0
  1. -- Objects
  2.  
  3. if game.CoreGui:findFirstChild("FE GUI") then
  4. game.CoreGui["FE GUI"]:remove()
  5. end
  6.  
  7. local FEGUI = Instance.new("ScreenGui")
  8. local Open = Instance.new("TextButton")
  9. local Frame = Instance.new("Frame")
  10. local Title = Instance.new("TextLabel")
  11. local FEKill = Instance.new("TextButton")
  12. local FEPunish = Instance.new("TextButton")
  13. local PlayerName = Instance.new("TextBox")
  14. local CG = game.CoreGui
  15. -- Properties
  16.  
  17. FEGUI.Name = "FE GUI"
  18. FEGUI.Parent = CG
  19. local CGG = CG["FE GUI"]
  20.  
  21. Open.Name = "Open"
  22. Open.Parent = FEGUI
  23. Open.BackgroundColor3 = Color3.new(1, 1, 1)
  24. Open.Position = UDim2.new(0, 0, 0, 350)
  25. Open.Size = UDim2.new(0, 105, 0, 25)
  26. Open.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  27. Open.Font = Enum.Font.Cartoon
  28. Open.FontSize = Enum.FontSize.Size18
  29. Open.Text = "Open \/ Close"
  30. Open.TextSize = 18
  31.  
  32. Frame.Parent = FEGUI
  33. Frame.BackgroundColor3 = Color3.new(1, 0.760784, 0.423529)
  34. Frame.Position = UDim2.new(0, 400, 0, 200)
  35. Frame.Size = UDim2.new(0, 300, 0, 300)
  36. Frame.Active = true
  37. Frame.Draggable = true
  38. Frame.Visible = false
  39.  
  40. Title.Name = "Title"
  41. Title.Parent = Frame
  42. Title.BackgroundColor3 = Color3.new(1, 0.482353, 0.482353)
  43. Title.Size = UDim2.new(0, 300, 0, 30)
  44. Title.Font = Enum.Font.Code
  45. Title.FontSize = Enum.FontSize.Size18
  46. Title.Text = "FE Gui"
  47. Title.TextSize = 16
  48.  
  49. FEKill.Name = "FEKill"
  50. FEKill.Parent = Frame
  51. FEKill.BackgroundColor3 = Color3.new(0.368627, 0.654902, 1)
  52. FEKill.Position = UDim2.new(0, 25, 0, 100)
  53. FEKill.Size = UDim2.new(0, 100, 0, 30)
  54. FEKill.Font = Enum.Font.Fantasy
  55. FEKill.FontSize = Enum.FontSize.Size18
  56. FEKill.Text = "FE Kill"
  57. FEKill.TextColor3 = Color3.new(1, 1, 1)
  58. FEKill.TextSize = 18
  59.  
  60. FEPunish.Name = "FEPunish"
  61. FEPunish.Parent = Frame
  62. FEPunish.BackgroundColor3 = Color3.new(0.368627, 0.654902, 1)
  63. FEPunish.Position = UDim2.new(0, 175, 0, 100)
  64. FEPunish.Size = UDim2.new(0, 100, 0, 30)
  65. FEPunish.Font = Enum.Font.Fantasy
  66. FEPunish.FontSize = Enum.FontSize.Size18
  67. FEPunish.Text = "FE Punish"
  68. FEPunish.TextColor3 = Color3.new(1, 1, 1)
  69. FEPunish.TextSize = 18
  70.  
  71. PlayerName.Name = "PlayerName"
  72. PlayerName.Parent = Frame
  73. PlayerName.BackgroundColor3 = Color3.new(1, 0.764706, 0.286275)
  74. PlayerName.Position = UDim2.new(0, 75, 0, 50)
  75. PlayerName.Size = UDim2.new(0, 150, 0, 30)
  76. PlayerName.Font = Enum.Font.SciFi
  77. PlayerName.FontSize = Enum.FontSize.Size18
  78. PlayerName.Text = "Player"
  79. PlayerName.TextColor3 = Color3.new(1, 1, 1)
  80. PlayerName.TextSize = 18
  81.  
  82.  
  83. CGG.Frame.FEKill.MouseButton1Down:connect(function()
  84. if PlayerName.Text == "all" then
  85. for i,v in pairs(game.Players:GetChildren()) do
  86. local char = game.Players[v].Character
  87. local target = game.Players[v]
  88. repeat
  89. wait()
  90. target:Move(Vector3.new(math.huge*0))
  91. until target.Character:FindFirstChild'Head' == nil
  92. end
  93. elseif PlayerName.Text == "others" then
  94. for i,v in pairs(game.Players:GetChildren()) do
  95. if not v.Name == game.Players.LocalPlayer.Name then
  96. local char = game.Players[v].Character
  97. local target = game.Players[v]
  98. repeat
  99. wait()
  100. target:Move(Vector3.new(math.huge*0))
  101. until target.Character:FindFirstChild'Head' == nil
  102. end
  103. end
  104. else
  105. local char = game.Players[PlayerName.Text].Character
  106. local target = game.Players[PlayerName.Text]
  107. repeat
  108. wait()
  109. target:Move(Vector3.new(math.huge*0))
  110. until target.Character:FindFirstChild'Head' == nil
  111. end
  112. end)
  113.  
  114. Open.MouseButton1Down:connect(function()
  115. Frame.Visible = not Frame.Visible
  116. end)
  117.  
  118. CGG.Frame.FEPunish.MouseButton1Down:connect(function()
  119. local lpChar = game.Players[PlayerName.Text].Character.Torso
  120.  
  121. for i,plr in pairs (game.Players:GetChildren()) do
  122. if plr.Name ~= game.Players[PlayerName.Text].Name then
  123. for i,v in pairs (game.Players[PlayerName.Text].Character:GetChildren()) do
  124. if v.ClassName == 'Part' then
  125. if v.Name ~= 'Head' then
  126. v.Anchored = true
  127. end
  128. end
  129. end
  130. local w = Instance.new("Weld", lpChar)
  131. w.Part0 = lpChar
  132. w.Part1 = plr.Character.Torso
  133. w.C0 = lpChar.CFrame
  134. w.C1 = lpChar.CFrame * CFrame.new(0, 99999999, 0)
  135. wait(0.1)
  136. w:Destroy()
  137. for i,v in pairs (game.Players[PlayerName.Text].Character:GetChildren()) do
  138. if v.ClassName == 'Part' then
  139. if v.Name ~= 'Head' then
  140. v.Anchored = false
  141. end
  142. end
  143. end
  144. end
  145. end
  146. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement