Universal Script 📌
44.5k Views
214 Executions

Making Parts Blocking Character Invisible

Universal Script 📌
Amiriki
AmirikiPublished 5
3 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

This script will making parts that are blocking you from seeing your character invisible. Showcase of it working alongside a noclip-cam script: https://streamable.com/gos11t Camera noclip is available as an IY command, but I will also post it on ScriptBlox shortly. Camera Noclip script: https://scriptblox.com/script/Universal-Script-Camera-Noclip-7433 Works in auto-exec Works on any executor

Updates

  1. Script edited: Update script

View Raw
--[[
    Written by Amiriki
    Inspired by DevForum post
    See character through walls and stuff, pretty useful
--]]

local RunService = game:GetService('RunService')
local LocalPlayer = game:GetService('Players').LocalPlayer
local Camera = workspace.CurrentCamera
local Obscuring = {}

RunService.RenderStepped:connect(function()
    for _, v in pairs(Obscuring) do 
        v.LocalTransparencyModifier = 0
        for _, v2 in pairs(v:GetChildren()) do
            if v2:IsA('Texture') then
                v2.Transparency /= 1000
            end
        end
    end

    if not LocalPlayer.Character or not LocalPlayer.Character.HumanoidRootPart then return end
    Obscuring = Camera:GetPartsObscuringTarget({LocalPlayer.Character.HumanoidRootPart.CFrame.p}, LocalPlayer.Character:GetChildren())

    for _, v in pairs(Obscuring) do 
        v.LocalTransparencyModifier = 1
        for _, v2 in pairs(v:GetChildren()) do
            if v2:IsA('Texture') then
                v2.Transparency *= 1000
            end
        end
    end    
end)


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Universal Script 📌
48.4k
46.5k
Bumped 59 minutes ago
Universal Script 📌
1.4k
1.3k
Bumped 4 hours ago
Universal Script 📌
4.2k
56.4k
Bumped 5 hours ago
Universal Script 📌
7.1k
71.4k
Bumped 5 hours ago
Script hub
3.5M
1.2M
Bumped 6 hours ago
Key System
Universal Script 📌
5.0k
92.0k
Bumped 11 hours ago