daily pastebin goal
32%
SHARE
TWEET

MiniMapa

EmanueleBM Mar 23rd, 2019 348 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Tener en cuenta los nombres como "Jugador o Mundo", que tengan las letras correctas en may├║sculas o min├║sculas
  2. local viewPort = script.Parent:WaitForChild("ViewportFrame")
  3. local charPart = viewPort:WaitForChild("Jugador")
  4.  
  5. local buildings = workspace:WaitForChild("Mundo")
  6.  
  7. buildings:Clone().Parent = viewPort
  8.  
  9. local camera = Instance.new("Camera", workspace)
  10. camera.CameraType = "Scriptable"
  11.  
  12. local height = 300
  13. local player = game.Players.LocalPlayer
  14. player.CharacterAdded:Wait()
  15.  
  16. viewPort.CurrentCamera = camera
  17.  
  18. game:GetService("RunService").RenderStepped:Connect(function ()
  19.  local position = player.Character.HumanoidRootPart.Position
  20.  camera.CFrame = CFrame.new(Vector3.new(position.X,height,position.Z), position)
  21.  charPart.CFrame = player.Character.HumanoidRootPart.CFrame
  22. end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top