Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Objects
- local Workspace = game:GetService("Workspace")
- local CoreGui = game:GetService("CoreGui")
- local Players = game:GetService("Players")
- local UserInputService = game:GetService("UserInputService")
- local Test = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local HeadlessButton = Instance.new("TextButton")
- local Plr = Players.LocalPlayer
- local Dragging = false
- local Offset = Vector2.new(0, 0)
- Test.Name = "Test"
- Test.Parent = CoreGui
- Frame.Name = "Frame"
- Frame.Parent = Test
- Frame.BackgroundColor3 = Color3.fromRGB(60, 0, 60) -- Morado oscuro
- Frame.BackgroundTransparency = 0.4
- Frame.BorderColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- Frame.BorderSizePixel = 2
- Frame.Position = UDim2.new(0.5, -105, 0.5, -63)
- Frame.Size = UDim2.new(0, 210, 0, 127)
- Frame.Active = true
- Frame.Draggable = true
- Title.Name = "Title"
- Title.Parent = Frame
- Title.BackgroundColor3 = Color3.fromRGB(90, 0, 90) -- Morado medio
- Title.BackgroundTransparency = 0.4
- Title.BorderSizePixel = 0
- Title.Size = UDim2.new(1, 0, 0.3, 0)
- Title.Font = Enum.Font.GothamBold
- Title.Text = "Credits:Noreplay_"
- Title.TextColor3 = Color3.new(1, 1, 1) -- Blanco
- Title.TextScaled = true
- Title.TextSize = 17
- Title.TextStrokeColor3 = Color3.new(0, 0, 0) -- Negro
- Title.TextStrokeTransparency = 0
- HeadlessButton.Name = "HeadlessButton"
- HeadlessButton.Parent = Frame
- HeadlessButton.BackgroundColor3 = Color3.fromRGB(150, 0, 150) -- Morado claro
- HeadlessButton.BorderSizePixel = 0
- HeadlessButton.Position = UDim2.new(0.5, -55, 0.7, -15)
- HeadlessButton.Size = UDim2.new(0, 110, 0, 30)
- HeadlessButton.Font = Enum.Font.GothamBold
- HeadlessButton.FontSize = Enum.FontSize.Size18
- HeadlessButton.Text = "HEADLESS"
- HeadlessButton.TextColor3 = Color3.new(1, 1, 1) -- Blanco
- HeadlessButton.TextScaled = true
- HeadlessButton.TextSize = 18
- HeadlessButton.TextStrokeColor3 = Color3.new(0, 0, 0) -- Negro
- HeadlessButton.TextStrokeTransparency = 0
- Frame.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- Dragging = true
- Offset = input.Position - Frame.Position
- Frame.CaptureFocus = true
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement then
- if Dragging then
- Frame.Position = UDim2.new(0, input.Position.X - Offset.X, 0, input.Position.Y - Offset.Y)
- end
- end
- end)
- UserInputService.InputEnded:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- Dragging = false
- Frame.CaptureFocus = false
- end
- end)
- HeadlessButton.MouseButton1Click:Connect(function()
- game.Players.LocalPlayer.Character.Head.Transparency = 1
- for i,v in pairs(game.Players.LocalPlayer.Character.Head:GetChildren()) do
- if v:IsA("Decal") then
- v:Destroy()
- end
- end
- end)
- Frame.Visible = true
Add Comment
Please, Sign In to add comment