Run it
Copy the script and paste it into your executor.
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local workspace = game:GetService("Workspace")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local MAX_TRANSPARENCY = 0.9
local MIN_TRANSPARENCY = 0.0
local RADIUS = 50
local xrayEnabled = true
(part)
character = part:()
character character:()
xrayParts = {}
(part)
part:() (part)
.(xrayParts, part)
_, part (:())
(part)
.DescendantAdded:(addPart)
UserInputService.InputBegan:((input, gameProcessed)
gameProcessed
input.KeyCode == .KeyCode.X
xrayEnabled = xrayEnabled
)
RunService.RenderStepped:(()
character = player.Character
character
root = character:()
root
playerPos = root.Position
_, part (xrayParts)
part part.Parent
xrayEnabled
distance = (part.Position - playerPos).Magnitude
alpha
distance >= RADIUS
alpha = MAX_TRANSPARENCY
alpha = MIN_TRANSPARENCY + (MAX_TRANSPARENCY - MIN_TRANSPARENCY) * (distance / RADIUS)
part.LocalTransparencyModifier = alpha
part.LocalTransparencyModifier =
)

Universal