R

Op skreen stretxh res

public
rrixh Jul 22, 2024 Never 83
Clone
Bash OPsuperskreenstretxh 17 lines (15 loc) | 616 Bytes
1
--jfh
2
local camera = workspace.CurrentCamera
3
local settings = {
4
["Aspect Ratio"] = true, --// leave it like this if i don't know what You're doing
5
["Ratio Value"] = 0.6 --// leave it like this if i don't know what You're doing
6
}
7
8
local oldNewindex
9
10
oldNewindex = hookmetamethod(game, "__newindex", function(object, propertyName, propertyValue)
11
if object == camera and propertyName == "CFrame" then
12
if settings["Aspect Ratio"] then
13
propertyValue = propertyValue * CFrame.new(0, 0, 0, 1, 0, 0, 0, settings["Ratio Value"], 0, 0, 0, 1)
14
end
15
end
16
return oldNewindex(object, propertyName, propertyValue)
17
end)