Migas3456

Untitled

May 20th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.83 KB | None | 0 0
  1. --Define le values list by victiny1223
  2. lplr = game.Players.LocalPlayer
  3. lchar = lplr.Character
  4. lhum = lchar:FindFirstChild("Humanoid")
  5. lrootpart = lhum:FindFirstChild("HumanoidRootPart")
  6. torso = lchar:FindFirstChild("Torso")
  7. animator = lhum.Animator
  8. backpack = lplr.Backpack
  9. ls = torso:FindFirstChild("Left Shoulder")
  10. ra = lchar:FindFirstChild("Right Arm")
  11. lh = torso:FindFirstChild("Left Hip")
  12. la = lchar:FindFirstChild("Left Arm")
  13. rs = torso:FindFirstChild("Right Shoulder")
  14. rh = torso:FindFirstChild("Right Hip")
  15. rl = lchar:FindFirstChild("Right Leg")
  16. ll = lchar:FindFirstChild("Left Leg")
  17. neck = torso:FindFirstChild("Neck")
  18. v3 = Vector3.new
  19. cf = CFrame
  20. create = Instance.new
  21. pgui = lplr.PlayerGui --game.CoreGui
  22. --[[To do:
  23. 1. Make a working FE kill gui
  24. a) Position to bottom right [./]
  25. b) Finish it :)
  26. 2. Add tp into it (tp to other player)
  27.  
  28. --]]
  29. local gui = Instance.new("ScreenGui")
  30. gui.Parent = pgui
  31. local generalframe = Instance.new("Frame")
  32. generalframe.Size = UDim2.new(0, 350, 0, 140)
  33. generalframe.Position = UDim2.new(0.75, 0, 0.75, 0)
  34. generalframe.BackgroundColor3 = BrickColor.new("Really black").Color
  35. generalframe.BorderSizePixel = 5
  36. generalframe.BorderColor3 = BrickColor.new("Institutional white").Color
  37. generalframe.Transparency = 0.25
  38. generalframe.Active = true
  39. generalframe.Draggable = true
  40. generalframe.Parent = gui
  41. local plrBox = Instance.new("TextBox")
  42. plrBox.Parent = generalframe
  43. plrBox.Size = UDim2.new(0, 300, 0, 42.5)
  44. plrBox.Position = UDim2.new(0.075, 0, 0.2, 0)
  45. plrBox.BackgroundColor3 = BrickColor.new("Really black").Color
  46. plrBox.BorderSizePixel = 5
  47. plrBox.BorderColor3 = BrickColor.new("Institutional white").Color
  48. plrBox.FontSize = Enum.FontSize.Size28
  49. plrBox.Font = "SciFi"
  50. plrBox.TextColor3 = Color3.new(255, 255, 255)
  51. plrBox.Transparency = 0.175
  52. plrBox.Text = "Type your victim's name"
  53. local execbutton = Instance.new("TextButton")
  54. execbutton.Size = UDim2.new(0, 300, 0, 27.5)
  55. execbutton.Position = plrBox.Position + UDim2.new(0, 0, 0, 54)
  56. execbutton.BackgroundColor3 = BrickColor.new("Really black").Color
  57. execbutton.BorderSizePixel = 5
  58. execbutton.BorderColor3 = BrickColor.new("Institutional white").Color
  59. execbutton.Font = "SciFi"
  60. execbutton.FontSize = Enum.FontSize.Size18
  61. execbutton.TextColor3 = Color3.new(255, 255, 255)
  62. execbutton.Transparency = 0.175
  63. execbutton.Text = "Execute"
  64. execbutton.Parent = generalframe
  65. --[[Function/s being made!]]
  66.  
  67. local function getPlayerByString(name)
  68. for _, Player in pairs(game:service'Players':GetPlayers()) do
  69. if Player.Name:sub(1, #name):lower() == name:lower() then
  70. return Player
  71. end
  72. end
  73. end
  74.  
  75. function FeKill(Target)
  76. if plrBox.Text:lower() == "all" or "others" then
  77. local lpChar = game.Players.LocalPlayer.Character.Torso
  78.  
  79.  
  80. for i,plr in pairs (game.Players:GetChildren()) do
  81. if plr.Name ~= game.Players.LocalPlayer.Name then
  82. for i,v in pairs (game.Players.LocalPlayer.Character:GetChildren()) do
  83. if v.ClassName == 'Part' then
  84. if v.Name ~= 'Head' then
  85. v.Anchored = true
  86. end
  87. end
  88. end
  89. local w = Instance.new("Weld", lpChar)
  90. w.Part0 = lpChar
  91. w.Part1 = plr.Character.Torso
  92. w.C0 = lpChar.CFrame
  93. w.C1 = lpChar.CFrame * CFrame.new(0, -10000, 0)
  94. wait(0.1)
  95. w:Destroy()
  96. for i,v in pairs (game.Players.LocalPlayer.Character:GetChildren()) do
  97. if v.ClassName == 'Part' then
  98. if v.Name ~= 'Head' then
  99. v.Anchored = false
  100. end
  101. end
  102. end
  103. end
  104. end
  105. else
  106. local chosen = getPlayerByString(Target)
  107. local plr = chosen
  108. local lpChar = game.Players.LocalPlayer.Character.Torso
  109.  
  110. for i,v in pairs (game.Players.LocalPlayer.Character:GetChildren()) do
  111. if v.ClassName == 'Part' then
  112. if v.Name ~= 'Head' then
  113. v.Anchored = true
  114. end
  115. end
  116. end
  117. local w = Instance.new("Weld", lpChar)
  118. w.Part0 = lpChar
  119. w.Part1 = plr.Character.Torso
  120. w.C0 = lpChar.CFrame
  121. w.C1 = lpChar.CFrame * CFrame.new(0, -10000, 0)
  122. wait(0.1)
  123. w:Destroy()
  124. for i,v in pairs (game.Players.LocalPlayer.Character:GetChildren()) do
  125. if v.ClassName == 'Part' then
  126. if v.Name ~= 'Head' then
  127. v.Anchored = false
  128. end
  129. end
  130. end
  131. end
  132.  
  133. end
  134.  
  135. function rekt(Target)
  136. if plrBox.Text:lower() == "all" then
  137. for i, v in pairs (game.Players:GetChildren()) do
  138. local char = v.Character
  139. if char then
  140. char:BreakJoints()
  141. end
  142. end
  143. elseif plrBox.Text:lower() == "others" then
  144. for i, v in pairs (game.Players:GetChildren()) do
  145. if v.Name ~= lplr.Name then
  146. local char = v.Character
  147. if char then
  148. char:BreakJoints()
  149. end
  150. end
  151. end
  152. else
  153. local prehum = getPlayerByString(Target)
  154. local hum = prehum.Character
  155. if hum then
  156. hum:BreakJoints()
  157. end
  158. end
  159.  
  160.  
  161. end
  162. --[[Connecting functions!]]
  163. execbutton.MouseButton1Down:connect(function()
  164. if game.Workspace.FilteringEnabled == true then
  165. FeKill(plrBox.Text)
  166. elseif game.Workspace.FilteringEnabled ~= true then
  167. rekt(plrBox.Text)
  168. end
  169. end)
Add Comment
Please, Sign In to add comment