Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---Watch my tutorial to understand everything: https://youtu.be/YRQoi88DY3I
- local plr = game:GetService("Players").LocalPlayer
- local char = plr.Character or plr.CharacterAdded
- local hum = char:WaitForChild("Humanoid")
- local humRootPart = char:WaitForChild("HumanoidRootPart")
- local map = game.Workspace.Map
- local gui = script.Parent
- local ViewPortFrame = gui:WaitForChild("MinimapFrame")
- ---get the Camera
- local cam = Instance.new("Camera")
- cam.Parent = game.Workspace
- cam.CameraType = Enum.CameraType.Scriptable
- cam.FieldOfView = 1
- ViewPortFrame.CurrentCamera = cam
- for i, minimapObjects in pairs(map:GetChildren()) do
- minimapObjects:Clone().Parent = ViewPortFrame
- end
- game:GetService("RunService").RenderStepped:Connect(function()
- local camFr = CFrame.new(humRootPart.Position+Vector3.new(0, 3500, 0), humRootPart.Position)
- cam.CFrame = camFr
- ViewPortFrame:WaitForChild("Arrow").Rotation = -humRootPart.Orientation.Y -90
- end)
Add Comment
Please, Sign In to add comment