SyntaxIsHere

Untitled

Nov 1st, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. -- Objects
  2.  
  3. local flingn00b = Instance.new("ScreenGui")
  4. local fraem = Instance.new("Frame")
  5. local user = Instance.new("TextBox")
  6. local button = Instance.new("TextButton")
  7.  
  8. -- Properties
  9.  
  10. flingn00b.Name = "fling n00b"
  11. flingn00b.Parent = game.CoreGui
  12.  
  13. function GetPlayer(String) -- Credit to Timeless/xFunnieuss
  14. local Found = {}
  15. local strl = String:lower()
  16. if strl == "all" then
  17. for i,v in pairs(game.Players:GetPlayers()) do
  18. table.insert(Found,v)
  19. end
  20. elseif strl == "others" then
  21. for i,v in pairs(game.Players:GetPlayers()) do
  22. if v.Name ~= game.Players.LocalPlayer.Name then
  23. table.insert(Found,v)
  24. end
  25. end
  26. else
  27. for i,v in pairs(game.Players:GetPlayers()) do
  28. if v.Name:lower():sub(1, #String) == String:lower() then
  29. table.insert(Found,v)
  30. end
  31. end
  32. end
  33. return Found
  34. end
  35.  
  36. fraem.Name = "fraem"
  37. fraem.Parent = flingn00b
  38. fraem.BackgroundColor3 = Color3.new(1, 1, 1)
  39. fraem.BorderColor3 = Color3.new(1, 0, 0)
  40. fraem.Position = UDim2.new(0, 0, 0, 450)
  41. fraem.Size = UDim2.new(0, 198, 0, 43)
  42.  
  43. user.Name = "user"
  44. user.Parent = fraem
  45. user.BackgroundColor3 = Color3.new(0, 0, 0)
  46. user.BorderColor3 = Color3.new(1, 0, 0)
  47. user.Size = UDim2.new(0, 200, 0, 22)
  48. user.Font = Enum.Font.SourceSans
  49. user.Text = "Username"
  50. user.TextColor3 = Color3.new(1, 0, 0)
  51. user.TextScaled = true
  52. user.TextSize = 14
  53. user.TextWrapped = true
  54.  
  55. button.Name = "button"
  56. button.Parent = fraem
  57. button.BackgroundColor3 = Color3.new(0, 0, 0)
  58. button.BorderColor3 = Color3.new(1, 0, 0)
  59. button.Position = UDim2.new(0, 0, 0, 22)
  60. button.Size = UDim2.new(0, 200, 0, 21)
  61. button.Font = Enum.Font.SourceSans
  62. button.Text = "Fling"
  63. button.TextColor3 = Color3.new(1, 0, 0)
  64. button.TextSize = 20
  65. button.MouseButton1Down:connect(function()
  66. for i,v in pairs(GetPlayer(user.Text))do
  67. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[v.Name].Character.HumanoidRootPart.CFrame
  68. wait( )
  69. game:GetService('RunService').Stepped:connect(function()
  70. game.Players.LocalPlayer.Character.Head.CanCollide = false
  71. game.Players.LocalPlayer.Character.Torso.CanCollide = false
  72. game.Players.LocalPlayer.Character["Left Leg"].CanCollide = false
  73. game.Players.LocalPlayer.Character["Right Leg"].CanCollide = false
  74. end)
  75. b = Instance.new("RocketPropulsion")
  76. b.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  77. b.Target = game.Players[v.Name].Character.HumanoidRootPart
  78. b.TurnP = 20000
  79. b.MaxThrust = 20000
  80. b.MaxSpeed = 1000
  81. b.ThrustP = 13000
  82. b:Fire()
  83. end
  84. end)
Add Comment
Please, Sign In to add comment