Universal Script 📌
44.5k Views
186 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

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 📌
5.7k
16.3k
Bumped 59 minutes ago
Key System
Script hub
3.2M
397.1k
Bumped 2 hours ago
Key System

Script hub

Hall of Fame #6

Verified script badgeOverflow #1 *OP*

Script hub
433.7k
832.6k
Bumped 3 hours ago
Key System

Script hub

Hall of Fame #5

Verified script badgeRonix Hub | 71 Supported Games + OP!

Script hub
4.7k
17.6k
Bumped 5 hours ago
Script hub
39.6k
41.7k
Bumped 6 hours ago
Key System
Script hub
264
12
Approved 6 hours ago
Key System