I Can't Implement Other Players in the MiniMap

So I am Creating a minimap but i cant get the other players on the minimap. workspace
This is the Image

local RunService = game:GetService("RunService")
local MapFolder = game.Workspace.Map

local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")

local Frame = script.Parent.MapFrame
local PlayerArrow = Frame.PlayerArrow

local Camera = Instance.new("Camera", game.Workspace)
Camera.CameraType = Enum.CameraType.Scriptable
Frame.CurrentCamera = Camera
Camera.FieldOfView = 1

for i, Objects in pairs(MapFolder:GetChildren()) do
	local Clone = Objects:Clone()
	Clone.Parent = Frame
end

RunService.RenderStepped:Connect(function()
	Camera.CFrame = CFrame.new(HumanoidRootPart.Position + Vector3.new(0, 10000, 0), HumanoidRootPart.Position)
	PlayerArrow.Rotation = -HumanoidRootPart.Orientation.Y - 90
end)

This is the map Script.

Can anyone help me?

1 Like

You can’t because your using a local script

ok so i will just have to leave it as player only map

Nah just use a serversided script

Wait nvm i was wrong lol i thought u were tryna get players on an actual map

I don’t see any code logic that deals with other players?
If you want other players your going to need to have a list of players and clone and parent to your frame

Unless your player characters are parented to mapfolder, then its possible u need to use playeradded in cases where a player joins after that loop runs

3 Likes