How to disable the zoom in camera fade

Hello everyone,
I want to completely disable the zoom in camera fade as I’m currently working on an isometric view game in third person (example below), and if it’s possible, disable the cursor being stuck in the middle.
I’ve zommed with my mouse wheel, but zooming in with “I” and “O” does the same thing.

I have imported the “TransparencyController” script from the main Roblox camera script, but I don’t know what to modify, I have followed this guide on the devforum:

Thanks in advance.

Connect a function to RenderStepped in a LocalScript, that sets every BasePart’s BasePart.LocalTransparencyModifier that is a descendant of the Player’s Character to 0.
EDIT: Fixed small typo

1 Like

Connect a function to Render Stepped in a Local Script.

1 Like

How would I do that? Just put the line of code in the documentation into a local script or is there anything else to add?

game:GetService(“RunService”).RenderStepped:Connect(function()
—put code here
end)

It runs the function every frame so it’s basically a loop

Just like this?

game:GetService("RunService").RenderStepped:Connect(function()
	local clientTransparency = part.Transparency + (1 * part.localTransparencyModifier)
end)

I haven’t seen the code that manipulates the local transparency but probably that’s correct

Returns this error in the console:

Players.AlexMastersGamers.PlayerScripts.LocalScript:2: attempt to index nil with 'Transparency'  -  Client - LocalScript:2

Code Example (In startergui)

local player = game.Players.LocalPlayer
local character = player.Character
character:WaitForChild("Head")
game:GetService(“RunService”).RenderStepped:Connect(function()
    for _,v in ipairs(character:GetDescendants()) do
        if v:IsA("BasePart") then
            v.LocalTransparencyModifier = 0
        end
    end
end)

image
The player is just transparent now

Change

to
v.LocalTransparencyModifier = 0

1 Like

Oh sorry I made a mistake! Change it to a 0.
I have just edited my post to correct this mistake.

1 Like

You and @LuaBaseScript are true life savers! Thank you!

1 Like