Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Tener en cuenta los nombres como "Jugador o Mundo", que tengan las letras correctas en mayúsculas o minúsculas
- local viewPort = script.Parent:WaitForChild("ViewportFrame")
- local charPart = viewPort:WaitForChild("Jugador")
- local buildings = workspace:WaitForChild("Mundo")
- buildings:Clone().Parent = viewPort
- local camera = Instance.new("Camera", workspace)
- camera.CameraType = "Scriptable"
- local height = 300
- local player = game.Players.LocalPlayer
- player.CharacterAdded:Wait()
- viewPort.CurrentCamera = camera
- game:GetService("RunService").RenderStepped:Connect(function ()
- local position = player.Character.HumanoidRootPart.Position
- camera.CFrame = CFrame.new(Vector3.new(position.X,height,position.Z), position)
- charPart.CFrame = player.Character.HumanoidRootPart.CFrame
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement