Advertisement
King12255

Invisible Gui

Nov 30th, 2024 (edited)
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.78 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local Frame = Instance.new("Frame")
  3. local Button = Instance.new("TextButton")
  4.  
  5. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  6. ScreenGui.ResetOnSpawn = false
  7.  
  8. Frame.Size = UDim2.new(0, 200, 0, 100)
  9. Frame.Position = UDim2.new(0.5, -100, 0.5, -50)
  10. Frame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  11. Frame.Parent = ScreenGui
  12. Frame.Active = true
  13. Frame.Draggable = true
  14.  
  15. Button.Size = UDim2.new(0, 180, 0, 50)
  16. Button.Position = UDim2.new(0, 10, 0, 25)
  17. Button.Text = "Invisible"
  18. Button.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  19. Button.TextColor3 = Color3.new(1, 1, 1)
  20. Button.Font = Enum.Font.SourceSans
  21. Button.TextSize = 24
  22. Button.Parent = Frame
  23.  
  24. local function Inv()
  25.     local player = game.Players.LocalPlayer
  26.     local position = player.Character.HumanoidRootPart.Position
  27.     player.Character:MoveTo(position + Vector3.new(0, 1000000, 0))
  28.     wait(0.1)
  29.     local humanoidrootpart = player.Character.HumanoidRootPart:Clone()
  30.     wait(0.1)
  31.     player.Character.HumanoidRootPart:Destroy()
  32.     humanoidrootpart.Parent = player.Character
  33.     player.Character:MoveTo(position)
  34.     wait()
  35.  
  36.     player.Character.Torso.Transparency = 0.5
  37.     player.Character.Head.Transparency = 0.5
  38.     player.Character["Left Arm"].Transparency = 0.5
  39.     player.Character["Right Arm"].Transparency = 0.5
  40.     player.Character["Left Leg"].Transparency = 0.5
  41.     player.Character["Right Leg"].Transparency = 0.5
  42.     player.Character.Humanoid:RemoveAccessories()
  43.     player.Character.Head.face:Destroy()
  44. end
  45.  
  46. Button.MouseButton1Click:Connect(function()
  47.     Inv()
  48.     game:GetService("StarterGui"):SetCore("SendNotification", {
  49.         Title = "Invisible Gui",
  50.         Text = "Made By the_king.78",
  51.         Duration = 12
  52.     })
  53. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement