-
What do you want to achieve? Fix this viewmodel script that makes you visible in LockFirstPerson CameraMode
-
What is the issue? It does this weird thing when i look down
-
What solutions have you tried so far? Changing the Humanoid’s CameraOffset (as you can see in the code down below)
Code: (StarterCharacterScripts)
repeat task.wait() until script.Parent:IsA("Model")
and not game:GetService("Players"):FindFirstChildOfClass("Player").PlayerGui:FindFirstChild("IntroGui")
game:GetService("RunService").RenderStepped:Connect(function()
script.Parent:FindFirstChild("Humanoid").CameraOffset = Vector3.new(0,0,-.6)
for _,part in script.Parent:GetChildren() do
if part:IsA("BasePart") or part:IsA("MeshPart") then
if part.Name ~= "Head" then
part.LocalTransparencyModifier = 0
else
part.LocalTransparencyModifier = 1
end
end
end
end)