local UIS = game:GetService("UserInputService") local Players = game:GetService("Players") local LP = Players.LocalPlayer local Char = LP.Character or LP.CharacterAdded:Wait() local HRP = Char:WaitForChild("HumanoidRootPart") local key = Enum.KeyCode.X local invis_on = false local seat local function setTransparency(char, value) for _, part in ipairs(char:GetDescendants()) do if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then part.Transparency = value elseif part:IsA("Decal") then part.Transparency = value end end end local function toggleInvisibility() invis_on = not invis_on if invis_on then local savedPos = HRP.CFrame Char:MoveTo(Vector3.new(-25.95, 84, 3537.55)) task.wait(0.15) seat = Instance.new("Seat") seat.Anchored = false seat.CanCollide = false seat.Name = "invischair" seat.Transparency = 1 seat.Position = Vector3.new(-25.95, 84, 3537.55) seat.Parent = workspace local torso = Char:FindFirstChild("Torso") or Char:FindFirstChild("UpperTorso") local weld = Instance.new("WeldConstraint") weld.Part0 = seat weld.Part1 = torso weld.Parent = seat task.wait(0.1) HRP.CFrame = savedPos setTransparency(Char, 0.5) game.StarterGui:SetCore("SendNotification", { Title = "Invisibility On"; Duration = 3; Text = "You are now fully invisible."; }) else if seat and seat.Parent then seat:Destroy() end setTransparency(Char, 0) game.StarterGui:SetCore("SendNotification", { Title = "Invisibility Off"; Duration = 3; Text = "You are now visible."; }) end end UIS.InputBegan:Connect(function(input, gpe) if not gpe and input.KeyCode == key then toggleInvisibility() end end)