Advertisement
Guest User

Gui made by gunonm_alt - my first loop script

a guest
Jun 30th, 2021
986
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local ImageLabel = Instance.new("ImageLabel")
  9. local PlayerName = Instance.new("TextBox")
  10. local LOOP = Instance.new("TextButton")
  11. local close = Instance.new("TextButton")
  12.  
  13. --Properties:
  14.  
  15. ScreenGui.Parent = game.CoreGui
  16.  
  17. Frame.Parent = ScreenGui
  18. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  19. Frame.Position = UDim2.new(0.16438359, 0, 0.301972687, 0)
  20. Frame.Size = UDim2.new(0, 329, 0, 366)
  21. Frame.Active = true
  22. Frame.Draggable = true
  23.  
  24. ImageLabel.Parent = Frame
  25. ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  26. ImageLabel.Position = UDim2.new(0.00303951371, 0, 0, 0)
  27. ImageLabel.Size = UDim2.new(0, 328, 0, 366)
  28. ImageLabel.Image = "http://www.roblox.com/asset/?id=7016427849"
  29.  
  30. PlayerName.Name = "PlayerName"
  31. PlayerName.Parent = Frame
  32. PlayerName.BackgroundColor3 = Color3.fromRGB(0, 85, 255)
  33. PlayerName.Position = UDim2.new(0.164133742, 0, 0.323936701, 0)
  34. PlayerName.Size = UDim2.new(0, 216, 0, 58)
  35. PlayerName.Font = Enum.Font.SourceSans
  36. PlayerName.Text = "Name..."
  37. PlayerName.TextColor3 = Color3.fromRGB(0, 0, 0)
  38. PlayerName.TextSize = 14.000
  39.  
  40. LOOP.Name = "LOOP"
  41. LOOP.Parent = Frame
  42. LOOP.BackgroundColor3 = Color3.fromRGB(0, 85, 255)
  43. LOOP.Position = UDim2.new(0.206686944, 0, 0.657075405, 0)
  44. LOOP.Size = UDim2.new(0, 187, 0, 50)
  45. LOOP.Font = Enum.Font.SourceSans
  46. LOOP.Text = "Loop That Neek"
  47. LOOP.TextColor3 = Color3.fromRGB(0, 0, 0)
  48. LOOP.TextScaled = true
  49. LOOP.TextSize = 14.000
  50. LOOP.TextWrapped = true
  51.  
  52. close.Name = "close"
  53. close.Parent = Frame
  54. close.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  55. close.Position = UDim2.new(0.893617034, 0, 0, 0)
  56. close.Size = UDim2.new(0, 34, 0, 27)
  57. close.Style = Enum.ButtonStyle.RobloxButtonDefault
  58. close.Font = Enum.Font.SourceSans
  59. close.Text = "X"
  60. close.TextColor3 = Color3.fromRGB(170, 0, 0)
  61. close.TextSize = 14.000
  62. close.TextWrapped = true
  63.  
  64.  
  65. LOOP.MouseButton1Click:connect(function()
  66.  
  67. local field = PlayerName.Text
  68.  
  69. local LocalUser = game.Players.LocalPlayer
  70. local ENEMY = field
  71.  
  72. for i=1,2000 do
  73. game.ReplicatedStorage.Remotes.Human_Punch:FireServer(LocalUser.Character.LeftHand, "LeftPunch", game.Workspace[ENEMY].LeftHand, 5, true, "RightPunch", LocalUser.Character.Boxing.Handle.Hit, 100)
  74. wait()
  75. end
  76. end)
  77.  
  78. PlayerName.FocusLost:connect(function()
  79. for i,v in pairs(game.Players:GetChildren()) do
  80. if (string.sub(string.lower(v.Name),1,string.len(PlayerName.Text))) == string.lower(PlayerName.Text) then
  81. PlayerName.Text = v.Name
  82. end
  83. end
  84. end)
  85.  
  86. close.MouseButton1Click:connect(function()
  87. close.Visible = true
  88. Frame.Visible = false
  89. close.Visible = false
  90. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement