
KeylessUniversal

local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local invisible = false
local function setInvisible(state)
local character = player.Character or player.CharacterAdded:Wait()
for _, object in ipairs(character:GetDescendants()) do
if object:IsA("BasePart") then
object.LocalTransparencyModifier = state and 1 or 0
elseif object:IsA("Decal") then
object.Transparency = state and 1 or 0
end
end
invisible = state
end
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.KeyCode == Enum.KeyCode.G then
setInvisible(not invisible)
end
end)
player.CharacterAdded:Connect(function()
invisible = false
end)No comments yet for this script.



