Skip to content

Instantly share code, notes, and snippets.

View RobertCodez's full-sized avatar
💻
Scripting In Lua

Depper RobertCodez

💻
Scripting In Lua
View GitHub Profile
@RobertCodez
RobertCodez / Transparency.lua
Created July 30, 2021 17:13
Player Transparency
local rStorage = game:GetService("ReplicatedStorage")
local rEvents = rStorage:WaitForChild("RemoteEvents")
local plr = game.Players.LocalPlayer
rEvents.HidePlayers.OnClientEvent:Connect(function()
for i,v in pairs(game.Players:GetChildren()) do
if v.Name ~= plr.Name then
local char = workspace:WaitForChild(v.Name)
for i,part in pairs(char:GetDescendants()) do