Advertisement
SenseiRoblox

Fling script(Roblox)

Feb 13th, 2021
64,363
3
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.70 KB | None | 3 0
  1. local lp = game:FindService("Players").LocalPlayer
  2.  
  3. local function gplr(String)
  4. local Found = {}
  5. local strl = String:lower()
  6. if strl == "all" then
  7. for i,v in pairs(game:FindService("Players"):GetPlayers()) do
  8. table.insert(Found,v)
  9. end
  10. elseif strl == "others" then
  11. for i,v in pairs(game:FindService("Players"):GetPlayers()) do
  12. if v.Name ~= lp.Name then
  13. table.insert(Found,v)
  14. end
  15. end
  16. elseif strl == "me" then
  17. for i,v in pairs(game:FindService("Players"):GetPlayers()) do
  18. if v.Name == lp.Name then
  19. table.insert(Found,v)
  20. end
  21. end
  22. else
  23. for i,v in pairs(game:FindService("Players"):GetPlayers()) do
  24. if v.Name:lower():sub(1, #String) == String:lower() then
  25. table.insert(Found,v)
  26. end
  27. end
  28. end
  29. return Found
  30. end
  31.  
  32. local function notif(str,dur)
  33. game:FindService("StarterGui"):SetCore("SendNotification", {
  34. Title = "yeet gui",
  35. Text = str,
  36. Icon = "rbxassetid://2005276185",
  37. Duration = dur or 3
  38. })
  39. end
  40.  
  41. --// sds
  42.  
  43. local h = Instance.new("ScreenGui")
  44. local Main = Instance.new("ImageLabel")
  45. local Top = Instance.new("Frame")
  46. local Title = Instance.new("TextLabel")
  47. local TextBox = Instance.new("TextBox")
  48. local TextButton = Instance.new("TextButton")
  49.  
  50. h.Name = "h"
  51. h.Parent = game:GetService("CoreGui")
  52. h.ResetOnSpawn = false
  53.  
  54. Main.Name = "Main"
  55. Main.Parent = h
  56. Main.Active = true
  57. Main.Draggable = true
  58. Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  59. Main.BorderSizePixel = 0
  60. Main.Position = UDim2.new(0.174545452, 0, 0.459574461, 0)
  61. Main.Size = UDim2.new(0, 454, 0, 218)
  62. Main.Image = "rbxassetid://2005276185"
  63.  
  64. Top.Name = "Top"
  65. Top.Parent = Main
  66. Top.BackgroundColor3 = Color3.fromRGB(57, 57, 57)
  67. Top.BorderSizePixel = 0
  68. Top.Size = UDim2.new(0, 454, 0, 44)
  69.  
  70. Title.Name = "Title"
  71. Title.Parent = Top
  72. Title.BackgroundColor3 = Color3.fromRGB(49, 49, 49)
  73. Title.BorderSizePixel = 0
  74. Title.Position = UDim2.new(0, 0, 0.295454562, 0)
  75. Title.Size = UDim2.new(0, 454, 0, 30)
  76. Title.Font = Enum.Font.SourceSans
  77. Title.Text = "FE Yeet Gui (trollface edition)"
  78. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  79. Title.TextScaled = true
  80. Title.TextSize = 14.000
  81. Title.TextWrapped = true
  82.  
  83. TextBox.Parent = Main
  84. TextBox.BackgroundColor3 = Color3.fromRGB(49, 49, 49)
  85. TextBox.BorderSizePixel = 0
  86. TextBox.Position = UDim2.new(0.0704845786, 0, 0.270642221, 0)
  87. TextBox.Size = UDim2.new(0, 388, 0, 62)
  88. TextBox.Font = Enum.Font.SourceSans
  89. TextBox.PlaceholderText = "Who do i destroy(can be shortened)"
  90. TextBox.Text = ""
  91. TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  92. TextBox.TextScaled = true
  93. TextBox.TextSize = 14.000
  94. TextBox.TextWrapped = true
  95.  
  96. TextButton.Parent = Main
  97. TextButton.BackgroundColor3 = Color3.fromRGB(49, 49, 49)
  98. TextButton.BorderSizePixel = 0
  99. TextButton.Position = UDim2.new(0.10352423, 0, 0.596330225, 0)
  100. TextButton.Size = UDim2.new(0, 359, 0, 50)
  101. TextButton.Font = Enum.Font.SourceSans
  102. TextButton.Text = "Cheese em'"
  103. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  104. TextButton.TextScaled = true
  105. TextButton.TextSize = 14.000
  106. TextButton.TextWrapped = true
  107.  
  108. TextButton.MouseButton1Click:Connect(function()
  109. local Target = gplr(TextBox.Text)
  110. if Target[1] then
  111. Target = Target[1]
  112.  
  113. local Thrust = Instance.new('BodyThrust', lp.Character.HumanoidRootPart)
  114. Thrust.Force = Vector3.new(9999,9999,9999)
  115. Thrust.Name = "YeetForce"
  116. repeat
  117. lp.Character.HumanoidRootPart.CFrame = Target.Character.HumanoidRootPart.CFrame
  118. Thrust.Location = Target.Character.HumanoidRootPart.Position
  119. game:FindService("RunService").Heartbeat:wait()
  120. until not Target.Character:FindFirstChild("Head")
  121. else
  122. notif("Invalid player")
  123. end
  124. end)
  125.  
  126. --//fsddfsdf
  127. notif("Loaded successfully! Created by scuba#0001", 5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement