Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added hide players command #189

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -4704,6 +4704,7 @@ CMDs[#CMDs + 1] = {NAME = 'promptr6', DESC = 'Prompts the game to switch your ri
CMDs[#CMDs + 1] = {NAME = 'promptr15', DESC = 'Prompts the game to switch your rig type to R15'}
CMDs[#CMDs + 1] = {NAME = 'wallwalk / walkonwalls', DESC = 'Walk on walls'}
CMDs[#CMDs + 1] = {NAME = 'removeads / adblock', DESC = 'Automatically removes ad billboards'}
CMDs[#CMDs + 1] = {NAME = 'hideplayers / hplyrs', DESC = 'Hides all charater models'}
wait()

for i = 1, #CMDs do
Expand Down Expand Up @@ -12344,6 +12345,24 @@ addcmd('thawunanchored',{'thawua','unfreezeunanchored','unfreezeua'},function(ar
frozenParts = {}
end)

addcmd("hideplayers", {"hplyrs"}, function(args, speaker)
local players = game:GetService("Players")
local player = players.LocalPlayer or players.PlayerAdded:Wait()

for i, plr in pairs(players:GetPlayers()) do
if plr.Name ~= speaker.Name then
local char = plr.Character
for i, child in pairs(char:GetChildren()) do
if child:IsA("Part") or child:IsA("MeshPart") then
child.Transparency = 1
elseif child:IsA("Accessory") then
child:FindFirstChild("Handle").Transparency = 1
end
end
end
end
end)

addcmd('tpunanchored',{'tpua'},function(args, speaker)
local players = getPlayer(args[1], speaker)
for i,v in pairs(players) do
Expand Down