Ameno__GodOH

Ameno SUS GUI

Jun 3rd, 2024 (edited)
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.40 KB | None | 0 0
  1. -- Variables
  2. local MyCustomGUI = Instance.new("ScreenGui")
  3. local FGUI = Instance.new("Frame")
  4. local btnAction = Instance.new("TextButton")
  5. local tbxVictim = Instance.new("TextBox")
  6. local lblTitle = Instance.new("TextLabel")
  7. local ImageLabel = Instance.new("ImageLabel")
  8.  
  9. -- Properties
  10. MyCustomGUI.Name = "MyCustomGUI"
  11. MyCustomGUI.Parent = game.CoreGui
  12.  
  13. FGUI.Name = "FGUI"
  14. FGUI.Parent = MyCustomGUI
  15. FGUI.BackgroundColor3 = Color3.new(1, 1, 1) -- White color
  16. FGUI.BorderSizePixel = 1
  17. FGUI.Position = UDim2.new(0, 0, 0.667, 0)
  18. FGUI.Size = UDim2.new(0, 317, 0, 271)
  19. FGUI.Draggable = true
  20.  
  21. lblTitle.Name = "Title"
  22. lblTitle.Parent = FGUI
  23. lblTitle.BackgroundColor3 = Color3.new(1, 1, 1)
  24. lblTitle.BorderSizePixel = 1
  25. lblTitle.Position = UDim2.new(0, 0, -0.122, 0)
  26. lblTitle.Size = UDim2.new(0, 317, 0, 33)
  27. lblTitle.Visible = true
  28. lblTitle.Active = true
  29. lblTitle.Font = Enum.Font.SourceSansBold
  30. lblTitle.Text = "My Custom GUI"
  31. lblTitle.TextColor3 = Color3.new(0, 0, 0)
  32. lblTitle.TextSize = 20
  33.  
  34. btnAction.Name = "Action"
  35. btnAction.Parent = FGUI
  36. btnAction.BackgroundColor3 = Color3.new(1, 1, 1)
  37. btnAction.BorderSizePixel = 1
  38. btnAction.Position = UDim2.new(0.044, 0, 0.229, 0)
  39. btnAction.Size = UDim2.new(0, 99, 0, 31)
  40. btnAction.Visible = true
  41. btnAction.Font = Enum.Font.SourceSansBold
  42. btnAction.Text = "Action"
  43. btnAction.TextColor3 = Color3.new(0, 0, 0)
  44. btnAction.TextSize = 20
  45.  
  46. tbxVictim.Name = "Victim"
  47. tbxVictim.Parent = FGUI
  48. tbxVictim.BackgroundColor3 = Color3.new(1, 1, 1)
  49. tbxVictim.BorderSizePixel = 1
  50. tbxVictim.Position = UDim2.new(0.533, 0, 0.229, 0)
  51. tbxVictim.Size = UDim2.new(0, 133, 0, 27)
  52. tbxVictim.Visible = true
  53. tbxVictim.Font = Enum.Font.SourceSansBold
  54. tbxVictim.Text = "[NAME]"
  55. tbxVictim.TextColor3 = Color3.new(0, 0, 0)
  56. tbxVictim.TextSize = 20
  57.  
  58. ImageLabel.Name = "ImageLabel"
  59. ImageLabel.Parent = FGUI
  60. ImageLabel.Image = "http://www.roblox.com/asset/?id=42837..."
  61. ImageLabel.BorderSizePixel = 1
  62. ImageLabel.Position = UDim2.new(0.274, 0, 0.358, 0)
  63. ImageLabel.Size = UDim2.new(0, 106, 0, 121)
  64.  
  65. -- Scripts
  66. btnAction.MouseButton1Click:Connect(function()
  67. local player = tbxVictim.Text
  68. print("Button clicked. Victim: "..player)
  69.  
  70. local targetPlayer = game.Players:FindFirstChild(player)
  71. if targetPlayer then
  72. print("Target player found: "..targetPlayer.Name)
  73.  
  74. local humanoid = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid")
  75. if humanoid then
  76. print("Humanoid found in local player")
  77.  
  78. local animation = Instance.new('Animation')
  79. animation.AnimationId = 'rbxassetid://148840371'
  80.  
  81. local playAnim = humanoid:LoadAnimation(animation)
  82. if playAnim then
  83. print("Animation loaded successfully")
  84. playAnim:Play()
  85. playAnim:AdjustSpeed(1) -- Ajuste a velocidade se necessário
  86. print("Animation playing")
  87.  
  88. while humanoid.Parent and humanoid.Parent.Parent do
  89. wait()
  90. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = targetPlayer.Character.HumanoidRootPart.CFrame
  91. end
  92. else
  93. print("Failed to load animation")
  94. end
  95. else
  96. print("Humanoid not found in local player")
  97. end
  98. else
  99. print("Target player not found")
  100. end
  101. end)
Advertisement
Add Comment
Please, Sign In to add comment