Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local vpf = script.Parent:WaitForChild("CharacterVPF")
- local char = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
- char.Archivable = true
- local cam = Instance.new("Camera")
- cam.Parent = vpf
- vpf.CurrentCamera = cam
- local clonedChar
- game:GetService("RunService").RenderStepped:Connect(function()
- if clonedChar then clonedChar:Destroy() end
- clonedChar = char:Clone()
- local hrp = clonedChar:WaitForChild("HumanoidRootPart")
- cam.CFrame = CFrame.new(hrp.Position + (hrp.CFrame.LookVector * 5), hrp.Position)
- clonedChar.Parent = vpf
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement