Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- INVISIBLE V3 made by @pystYT --
- --// Button position and size variables
- local buttonSize = UDim2.new(0, 50, 0, 50) -- Small 50x50 button
- local buttonPosition = UDim2.new(1, -120, 0, 10) -- Left of the three dots button
- --// don't edit script below
- local invis_on = false
- --// Create a button
- local screenGui = Instance.new("ScreenGui")
- local invisButton = Instance.new("TextButton")
- -- Set up ScreenGui for compatibility across devices (mobile/PC)
- screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- -- Button properties
- invisButton.Parent = screenGui
- invisButton.Size = buttonSize
- invisButton.Position = buttonPosition
- invisButton.Text = ""
- invisButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0) -- Black color
- invisButton.BackgroundTransparency = 0.5 -- Semi-transparent
- invisButton.BorderSizePixel = 0
- invisButton.Name = "InvisButton"
- -- Make button round
- invisButton.ClipsDescendants = true
- invisButton.AutoButtonColor = false
- local uicorner = Instance.new("UICorner", invisButton)
- uicorner.CornerRadius = UDim.new(1, 0)
- -- Function to set character transparency
- local function setCharacterTransparency(transparency)
- local character = game.Players.LocalPlayer.Character
- if character then
- for _, part in pairs(character:GetDescendants()) do
- if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
- part.Transparency = transparency
- end
- end
- end
- end
- -- Function to toggle invisibility
- local function toggleInvisibility()
- invis_on = not invis_on
- if invis_on then
- -- Make character semi-transparent
- setCharacterTransparency(0.5)
- local savedpos = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
- wait()
- game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-25.95, 84, 3537.55))
- wait(.15)
- local Seat = Instance.new('Seat', game.Workspace)
- Seat.Anchored = false
- Seat.CanCollide = false
- Seat.Name = 'invischair'
- Seat.Transparency = 1
- Seat.Position = Vector3.new(-25.95, 84, 3537.55)
- local Weld = Instance.new("Weld", Seat)
- Weld.Part0 = Seat
- Weld.Part1 = game.Players.LocalPlayer.Character:FindFirstChild("Torso") or game.Players.LocalPlayer.Character.UpperTorso
- wait()
- Seat.CFrame = savedpos
- game.StarterGui:SetCore("SendNotification", {
- Title = "Invis On";
- Duration = 1;
- Text = "";
- })
- else
- -- Make character fully visible again
- setCharacterTransparency(0)
- if workspace:FindFirstChild('invischair') then
- workspace:FindFirstChild('invischair'):Destroy()
- end
- game.StarterGui:SetCore("SendNotification", {
- Title = "Invis Off";
- Duration = 1;
- Text = "";
- })
- end
- end
- -- Connect the button to toggle invisibility on click
- invisButton.MouseButton1Click:Connect(toggleInvisibility)
Advertisement
Add Comment
Please, Sign In to add comment