Hey there! Currently wanting to take a shot at a mirror but cant get it position right. If the player gets too close they get bigger and if you walk side to side it seems you are inverted. This makes the mirror really crappy. Help is greatly appreciated thank you for your time.
VIDEO
CODE
local player = game:GetService("Players").LocalPlayer
local camera = game:GetService("Workspace")["CurrentCamera"]
local viewportCamera = Instance.new("Camera", script.Parent)
script.Parent["ViewportFrame"].CurrentCamera = viewportCamera
viewportCamera.CFrame = game:GetService("Workspace")["Mirror"].CFrame
game:GetService("RunService").RenderStepped:Connect(function()
for _, v in ipairs(script.Parent["ViewportFrame"]:GetChildren()) do
v:Destroy()
end
for _, v in ipairs(game:GetService("Workspace"):GetChildren()) do
if (((v:IsA("Model") or v:IsA("BasePart")) and not v:IsA("Terrain"))) then
v.Archivable = true
local clone = v:Clone()
clone.Parent = script.Parent["ViewportFrame"]
end
end
end)