I made a script that forces players into first person and changes their camera position a little forward so they wouldnt see their neck. But now if player comes close to the wall they can see through it. I tried to make a part that prevents the player to come close to the wall, but the part doesnt stop the player and goes through the wall aswell. Ray stuff doesnt work because it glitches due to decorations, i cant place them all into an ignoreList… any ideas?
local RenderStepped = game:GetService("RunService").RenderStepped
local FixModel = game:GetService("ReplicatedStorage").CamFixModel:Clone()
local FixModelRoot = FixModel.PrimaryPart
local PlayerBody = workspace:WaitForChild(game.Players.LocalPlayer.Name)
FixModel.Parent = PlayerBody
RenderStepped:Connect(function ()
FixModelRoot.CFrame = PlayerBody.PrimaryPart.CFrame * CFrame.new(0, 0, -3)
end)