DanOnScripts

HEADLESS SCRIPT🤯

Apr 7th, 2024
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. --Objects
  2. local Workspace = game:GetService("Workspace")
  3. local CoreGui = game:GetService("CoreGui")
  4. local Players = game:GetService("Players")
  5. local UserInputService = game:GetService("UserInputService")
  6. local Test = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local Title = Instance.new("TextLabel")
  9. local HeadlessButton = Instance.new("TextButton")
  10. local Plr = Players.LocalPlayer
  11. local Dragging = false
  12. local Offset = Vector2.new(0, 0)
  13.  
  14. Test.Name = "Test"
  15. Test.Parent = CoreGui
  16.  
  17. Frame.Name = "Frame"
  18. Frame.Parent = Test
  19. Frame.BackgroundColor3 = Color3.fromRGB(60, 0, 60) -- Morado oscuro
  20. Frame.BackgroundTransparency = 0.4
  21. Frame.BorderColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  22. Frame.BorderSizePixel = 2
  23. Frame.Position = UDim2.new(0.5, -105, 0.5, -63)
  24. Frame.Size = UDim2.new(0, 210, 0, 127)
  25. Frame.Active = true
  26. Frame.Draggable = true
  27.  
  28. Title.Name = "Title"
  29. Title.Parent = Frame
  30. Title.BackgroundColor3 = Color3.fromRGB(90, 0, 90) -- Morado medio
  31. Title.BackgroundTransparency = 0.4
  32. Title.BorderSizePixel = 0
  33. Title.Size = UDim2.new(1, 0, 0.3, 0)
  34. Title.Font = Enum.Font.GothamBold
  35. Title.Text = "Credits:Noreplay_"
  36. Title.TextColor3 = Color3.new(1, 1, 1) -- Blanco
  37. Title.TextScaled = true
  38. Title.TextSize = 17
  39. Title.TextStrokeColor3 = Color3.new(0, 0, 0) -- Negro
  40. Title.TextStrokeTransparency = 0
  41.  
  42. HeadlessButton.Name = "HeadlessButton"
  43. HeadlessButton.Parent = Frame
  44. HeadlessButton.BackgroundColor3 = Color3.fromRGB(150, 0, 150) -- Morado claro
  45. HeadlessButton.BorderSizePixel = 0
  46. HeadlessButton.Position = UDim2.new(0.5, -55, 0.7, -15)
  47. HeadlessButton.Size = UDim2.new(0, 110, 0, 30)
  48. HeadlessButton.Font = Enum.Font.GothamBold
  49. HeadlessButton.FontSize = Enum.FontSize.Size18
  50. HeadlessButton.Text = "HEADLESS"
  51. HeadlessButton.TextColor3 = Color3.new(1, 1, 1) -- Blanco
  52. HeadlessButton.TextScaled = true
  53. HeadlessButton.TextSize = 18
  54. HeadlessButton.TextStrokeColor3 = Color3.new(0, 0, 0) -- Negro
  55. HeadlessButton.TextStrokeTransparency = 0
  56.  
  57. Frame.InputBegan:Connect(function(input)
  58. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  59. Dragging = true
  60. Offset = input.Position - Frame.Position
  61. Frame.CaptureFocus = true
  62. end
  63. end)
  64.  
  65. UserInputService.InputChanged:Connect(function(input)
  66. if input.UserInputType == Enum.UserInputType.MouseMovement then
  67. if Dragging then
  68. Frame.Position = UDim2.new(0, input.Position.X - Offset.X, 0, input.Position.Y - Offset.Y)
  69. end
  70. end
  71. end)
  72.  
  73. UserInputService.InputEnded:Connect(function(input)
  74. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  75. Dragging = false
  76. Frame.CaptureFocus = false
  77. end
  78. end)
  79.  
  80. HeadlessButton.MouseButton1Click:Connect(function()
  81. game.Players.LocalPlayer.Character.Head.Transparency = 1
  82. for i,v in pairs(game.Players.LocalPlayer.Character.Head:GetChildren()) do
  83. if v:IsA("Decal") then
  84. v:Destroy()
  85. end
  86. end
  87. end)
  88.  
  89. Frame.Visible = true
Add Comment
Please, Sign In to add comment