papapyst

FE Invisible V3 (pystyt)

Oct 11th, 2024
18,362
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 1 0
  1. -- INVISIBLE V3 made by @pystYT --
  2.  
  3. --// Button position and size variables
  4. local buttonSize = UDim2.new(0, 50, 0, 50) -- Small 50x50 button
  5. local buttonPosition = UDim2.new(1, -120, 0, 10) -- Left of the three dots button
  6.  
  7. --// don't edit script below
  8. local invis_on = false
  9.  
  10. --// Create a button
  11. local screenGui = Instance.new("ScreenGui")
  12. local invisButton = Instance.new("TextButton")
  13.  
  14. -- Set up ScreenGui for compatibility across devices (mobile/PC)
  15. screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  16.  
  17. -- Button properties
  18. invisButton.Parent = screenGui
  19. invisButton.Size = buttonSize
  20. invisButton.Position = buttonPosition
  21. invisButton.Text = ""
  22. invisButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0) -- Black color
  23. invisButton.BackgroundTransparency = 0.5 -- Semi-transparent
  24. invisButton.BorderSizePixel = 0
  25. invisButton.Name = "InvisButton"
  26.  
  27. -- Make button round
  28. invisButton.ClipsDescendants = true
  29. invisButton.AutoButtonColor = false
  30. local uicorner = Instance.new("UICorner", invisButton)
  31. uicorner.CornerRadius = UDim.new(1, 0)
  32.  
  33. -- Function to set character transparency
  34. local function setCharacterTransparency(transparency)
  35. local character = game.Players.LocalPlayer.Character
  36. if character then
  37. for _, part in pairs(character:GetDescendants()) do
  38. if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
  39. part.Transparency = transparency
  40. end
  41. end
  42. end
  43. end
  44.  
  45. -- Function to toggle invisibility
  46. local function toggleInvisibility()
  47. invis_on = not invis_on
  48. if invis_on then
  49. -- Make character semi-transparent
  50. setCharacterTransparency(0.5)
  51.  
  52. local savedpos = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  53. wait()
  54. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-25.95, 84, 3537.55))
  55. wait(.15)
  56. local Seat = Instance.new('Seat', game.Workspace)
  57. Seat.Anchored = false
  58. Seat.CanCollide = false
  59. Seat.Name = 'invischair'
  60. Seat.Transparency = 1
  61. Seat.Position = Vector3.new(-25.95, 84, 3537.55)
  62. local Weld = Instance.new("Weld", Seat)
  63. Weld.Part0 = Seat
  64. Weld.Part1 = game.Players.LocalPlayer.Character:FindFirstChild("Torso") or game.Players.LocalPlayer.Character.UpperTorso
  65. wait()
  66. Seat.CFrame = savedpos
  67. game.StarterGui:SetCore("SendNotification", {
  68. Title = "Invis On";
  69. Duration = 1;
  70. Text = "";
  71. })
  72. else
  73. -- Make character fully visible again
  74. setCharacterTransparency(0)
  75.  
  76. if workspace:FindFirstChild('invischair') then
  77. workspace:FindFirstChild('invischair'):Destroy()
  78. end
  79. game.StarterGui:SetCore("SendNotification", {
  80. Title = "Invis Off";
  81. Duration = 1;
  82. Text = "";
  83. })
  84. end
  85. end
  86.  
  87. -- Connect the button to toggle invisibility on click
  88. invisButton.MouseButton1Click:Connect(toggleInvisibility)
Advertisement
Add Comment
Please, Sign In to add comment