Universal Script 📌
40.2k Views
572 Executions

Toggled Invisibilty

Universal Script 📌
tencil
tencilFirst script
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

- Toggle between visible and invisible on a whim - Should still be able to use "Touchable" tools like swords while invisible - Others usually can't attack you while invisible (https://scriptblox.com/u/____)'s script i just added transparency when invis is on)

View Raw
local key = Enum.KeyCode.X -- key to toggle invisibility

--// don't edit script below
local invis_on = false

local function makeTransparent(character)
    for _, part in ipairs(character:GetDescendants()) do
        if part:IsA("BasePart") then
            part.LocalTransparencyModifier = invis_on and 0.5 or 0
        end
    end
end

function onKeyPress(inputObject, chat)
    if chat then return end
    if inputObject.KeyCode == key then
        invis_on = not invis_on
        if invis_on then
            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
            workspace:FindFirstChild('invischair'):Remove()


Comments

1
Log in to join the conversation. Login
sammy10990's profile picture
sammy109902 years ago(edited)

op

2

Tags

More universal scripts

See all
Universal Script 📌
53
1
Approved 1 hour ago
Key System
Script hub
167.3k
1.3M
Bumped 1 hour ago
Key System
Script hub
265.5k
102.3k
Bumped 2 hours ago
Key System
Script hub
281.6k
917.0k
Bumped 5 hours ago
Key System

Script hub

#21 this week

Verified script badgeAxon Hub 60+ Games & 800+ Features

Script hub
2.1M
704.6k
Bumped 5 hours ago
Key System

Script hub

#5 today

Verified script badgeLumin Hub | #1 | Insta Steal

Universal Script 📌
30.0k
88.2k
Bumped 7 hours ago