Skip to content
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
23 changes: 23 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -4638,6 +4638,7 @@ CMDs[#CMDs + 1] = {NAME = 'tweengotocam / tgotocam', DESC = 'Tweens you to the l
CMDs[#CMDs + 1] = {NAME = 'firstp', DESC = 'Forces camera to go into first person'}
CMDs[#CMDs + 1] = {NAME = 'thirdp', DESC = 'Allows camera to go into third person'}
CMDs[#CMDs + 1] = {NAME = 'noclipcam / nccam', DESC = 'Allows camera to go through objects like walls'}
CMDs[#CMDs + 1] = {NAME = 'unnoclipcam / unnccam / ccam', DESC = 'Restores normal camera collision'}
CMDs[#CMDs + 1] = {NAME = 'maxzoom [num]', DESC = 'Maximum camera zoom'}
CMDs[#CMDs + 1] = {NAME = 'minzoom [num]', DESC = 'Minimum camera zoom'}
CMDs[#CMDs + 1] = {NAME = 'camdistance [num]', DESC = 'Changes camera distance from your player'}
Expand Down Expand Up @@ -8642,6 +8643,28 @@ addcmd('noclipcam', {'nccam'}, function(args, speaker)
end
end)

addcmd('unnoclipcam', {'unnccam', 'ccam'}, function(args, speaker)
local sc = (debug and debug.setconstant) or setconstant
local gc = (debug and debug.getconstants) or getconstants
if not sc or not getgc or not gc then
return notify('Incompatible Exploit', 'Your exploit does not support this command (missing setconstant or getconstants or getgc)')
end

local pop = speaker.PlayerScripts.PlayerModule.CameraModule.ZoomController.Popper

for _, v in pairs(getgc()) do
if type(v) == 'function' and getfenv(v).script == pop then
for i, v1 in pairs(gc(v)) do
if tonumber(v1) == 0 then
sc(v, i, 0.25)
elseif tonumber(v1) == 0.25 then
sc(v, i, 0)
end
end
end
end
end)

addcmd('maxzoom',{},function(args, speaker)
speaker.CameraMaxZoomDistance = args[1]
end)
Expand Down