Okay, Im attempting to make a mini map, but my game is too big for a decal to cover the entire map because of the max part size of 2048, I then tried using meshes and that worked really well for size,

however I cannot get the mesh to replicate on the viewportFrame.

Code:

local FakeCam = Instance.new("Camera")

FakeCam.Parent = workspace

FakeCam.CameraType = Enum.CameraType.Scriptable

script.Parent.ViewportFrame.CurrentCamera = FakeCam
game.Workspace.top:Clone().Parent = script.Parent.ViewportFrame

game:GetService("RunService").RenderStepped:Connect(function()
	script.Parent.ViewportFrame:WaitForChild("top").CFrame = CFrame.new(Vector3.new(0, 0, 0))
	FakeCam.CFrame = CFrame.new( Vector3.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X,900,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z),game.Players.LocalPlayer.Character.HumanoidRootPart.Position)
	
end)

Then the SpecialMesh which is in "top"

https://prnt.sc/qz0nnt

Don't know what to do from here, any ideas would be helpful

1 comment

0

couldnt you just make it so the image follows the players position (like in jailbreak, cbro, etc..)?