MaxproGlitcher

Gui Test Fling avec le nom du joueur .lua

Dec 28th, 2023
9
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.43 KB | None | 0 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. --// sds
  33.  
  34. local h = Instance.new("ScreenGui")
  35. local Main = Instance.new("ImageLabel")
  36. local Top = Instance.new("Frame")
  37. local Title = Instance.new("TextLabel")
  38. local TextBox = Instance.new("TextBox")
  39. local TextButton = Instance.new("TextButton")
  40.  
  41. h.Name = "h"
  42. h.Parent = game.Players.LocalPlayer.PlayerGui
  43. h.ResetOnSpawn = false
  44.  
  45. Main.Name = "Main"
  46. Main.Parent = h
  47. Main.Active = true
  48. Main.Draggable = true
  49. Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  50. Main.BorderSizePixel = 0
  51. Main.Position = UDim2.new(0.174545452, 0, 0.459574461, 0)
  52. Main.Size = UDim2.new(0, 454, 0, 218)
  53. Main.Image = "rbxassetid://2005276185"
  54.  
  55. Top.Name = "Top"
  56. Top.Parent = Main
  57. Top.BackgroundColor3 = Color3.fromRGB(57, 57, 57)
  58. Top.BorderSizePixel = 0
  59. Top.Size = UDim2.new(0, 454, 0, 44)
  60.  
  61. Title.Name = "Title"
  62. Title.Parent = Top
  63. Title.BackgroundColor3 = Color3.fromRGB(49, 49, 49)
  64. Title.BorderSizePixel = 0
  65. Title.Position = UDim2.new(0, 0, 0.295454562, 0)
  66. Title.Size = UDim2.new(0, 454, 0, 30)
  67. Title.Font = Enum.Font.SourceSans
  68. Title.Text = "FE Yeet Gui (trollface edition)"
  69. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  70. Title.TextScaled = true
  71. Title.TextSize = 14.000
  72. Title.TextWrapped = true
  73.  
  74. TextBox.Parent = Main
  75. TextBox.BackgroundColor3 = Color3.fromRGB(49, 49, 49)
  76. TextBox.BorderSizePixel = 0
  77. TextBox.Position = UDim2.new(0.0704845786, 0, 0.270642221, 0)
  78. TextBox.Size = UDim2.new(0, 388, 0, 62)
  79. TextBox.Font = Enum.Font.SourceSans
  80. TextBox.PlaceholderText = "Who do i destroy(can be shortened)"
  81. TextBox.Text = ""
  82. TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  83. TextBox.TextScaled = true
  84. TextBox.TextSize = 14.000
  85. TextBox.TextWrapped = true
  86.  
  87. TextButton.Parent = Main
  88. TextButton.BackgroundColor3 = Color3.fromRGB(49, 49, 49)
  89. TextButton.BorderSizePixel = 0
  90. TextButton.Position = UDim2.new(0.10352423, 0, 0.596330225, 0)
  91. TextButton.Size = UDim2.new(0, 359, 0, 50)
  92. TextButton.Font = Enum.Font.SourceSans
  93. TextButton.Text = "Cheese em'"
  94. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  95. TextButton.TextScaled = true
  96. TextButton.TextSize = 14.000
  97. TextButton.TextWrapped = true
  98.  
  99. TextButton.MouseButton1Click:Connect(function()
  100. local Target = gplr(TextBox.Text)
  101. if Target[1] then
  102. Target = Target[1]
  103.  
  104. local Thrust = Instance.new('BodyThrust', lp.Character.HumanoidRootPart)
  105. Thrust.Force = Vector3.new(9999,9999,9999)
  106. Thrust.Name = "YeetForce"
  107. repeat
  108. lp.Character.HumanoidRootPart.CFrame = Target.Character.HumanoidRootPart.CFrame
  109. Thrust.Location = Target.Character.HumanoidRootPart.Position
  110. game:FindService("RunService").Heartbeat:wait()
  111. until not Target.Character:FindFirstChild("Head")
  112. else
  113. warn("invalid player")
  114. end
  115. end)
Add Comment
Please, Sign In to add comment