helper: i was following an yt tutorial and the script works.. but not if the object you want is under 2 parts
Problem: the scripts both of them an object under 2 parts does not show
Yt persons code:
local screenGui = script.Parent
local minimapFrame = screenGui:WaitForChild("Minimap")
local directionArrow = minimapFrame:WaitForChild("DirectionArrow")
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local hrp = char:WaitForChild("HumanoidRootPart")
local humanoid = char:WaitForChild("Humanoid")
local currentCamera = Instance.new("Camera")
currentCamera.FieldOfView = 1
currentCamera.CameraType = Enum.CameraType.Scriptable
currentCamera.Parent = workspace
minimapFrame.CurrentCamera = currentCamera
for i, minimapObject in pairs(workspace.MinimapObjects:GetChildren()) do
minimapObject:Clone().Parent = minimapFrame
end
game:GetService("RunService").RenderStepped:Connect(function()
local camCFrame = CFrame.new(hrp.Position + Vector3.new(0, 5000, 0), hrp.Position)
currentCamera.CFrame = camCFrame
directionArrow.Rotation = -hrp.Orientation.Y - 90
end)
My code i modified from yt persons code:
local screenGui = script.Parent
local minimapFrame = screenGui:WaitForChild("Minimap")
local directionArrow = minimapFrame:WaitForChild("DirectionArrow")
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local hrp = char:WaitForChild("HumanoidRootPart")
local humanoid = char:WaitForChild("Humanoid")
local currentCamera = Instance.new("Camera")
currentCamera.FieldOfView = 1
currentCamera.CameraType = Enum.CameraType.Scriptable
currentCamera.Parent = workspace
minimapFrame.CurrentCamera = currentCamera
for i, minimapObject in pairs(workspace.Minimap:GetChildren()) do
minimapObject:Clone().Parent = minimapFrame
if minimapObject <= 1 then
minimapObject:Clone().Parent = minimapFrame
break
end
end
game:GetService("RunService").RenderStepped:Connect(function()
local camCFrame = CFrame.new(hrp.Position + Vector3.new(0, 5000, 0), hrp.Position)
currentCamera.CFrame = camCFrame
directionArrow.Rotation = -hrp.Orientation.Y - 90
end)
But None seems to Work?

1 comment
*The Yt Person is HowToRoblox