I made a very messy script, but it makes you completely invisible, and saves everything from your character. "x" turns you invisible. "z" turns you visible. Put it inside a LocalScript inside StarterGui.
repeat wait() until game.Players.LocalPlayer.Character
plr = game.Players.LocalPlayer
m = plr:GetMouse()
canuse = "Player"
faceid = ""
hat = 1
visible = true
m.KeyDown:connect(function(key)
--Turn Invisible
if key == "x" and plr.Name == canuse then
hat = 1
for _,v in pairs(plr.Character:GetChildren()) do
if v:IsA("BasePart") and visible then
v.Transparency = 1
--Save face texture
if v:findFirstChild("face") then faceid = v.face.Texture; v.face:Destroy() end
elseif v:IsA("Hat") then
--Save hats
if game.ReplicatedStorage:findFirstChild(plr.Name) then
v.Parent = game.ReplicatedStorage[plr.Name]
else
local f = Instance.new("Folder",game.ReplicatedStorage)
f.Name = plr.Name
end end end visible = false
--Turn Visible
elseif key == "z" and plr.Name == canuse then
if visible == false then
--Restore character
for _,v in pairs(plr.Character:GetChildren()) do
if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then v.Transparency = 0 end end
local f = Instance.new("Decal",plr.Character.Head); f.Name = "face"; f.Texture = faceid
for _,v in pairs(game.ReplicatedStorage[plr.Name]:GetChildren()) do
v.Parent = plr.Character
end end visible = true end end) |