Camera zoom in effect on the crosshair

This commit is contained in:
2023-12-26 01:40:12 -05:00
parent 6bb85e0519
commit 32292c933d
4 changed files with 37 additions and 33 deletions

View File

@@ -4,23 +4,23 @@ local VignetteModule = {
VignetteModule.__index = VignetteModule
function VignetteModule.constructor(PlayerGui: PlayerGui)
local Vignette = PlayerGui:WaitForChild("Vignette")
local VignetteIcon = Vignette:WaitForChild("ImageLabel")
local Screen = PlayerGui:WaitForChild("Vignette")
local Icon = Screen:WaitForChild("ImageLabel")
return setmetatable({
Vignette = Vignette,
VignetteIcon = VignetteIcon
Screen = Screen,
Icon = Icon
}, VignetteModule)
end
function VignetteModule:Enable()
VignetteModule.Enabled = true
self.Vignette.Enabled = true
self.Screen.Enabled = true
end
function VignetteModule:Disable()
VignetteModule.Enabled = false
self.Vignette.Enabled = false
self.Screen.Enabled = false
end
return VignetteModule