Hi i have this script:
minimapEventToClient.OnClientEvent:Connect(function(viewPortFrame)
print(viewPortFrame)
print(viewPortFrame)
ClonedviewportFrame = viewPortFrame:Clone()
ClonedviewportFrame.Parent = game.Players.LocalPlayer.PlayerGui.Minimap
print("reach till here")
camera = ClonedviewportFrame.Camera
camera.CFrame = CFrame.new(ClonedviewportFrame.Model:GetPivot().Position + Vector3.new(0,8000,0) , model:GetPivot().Position)
* CFrame.Angles(0,0,math.rad(-270))
end)
and when reaches the line:
ClonedviewportFrame = viewPortFrame:Clone()
It doest nothing and this apears in the output
and the viewport doesnt clone.
the viewport is passed by server script with a remote event , also the print doesnt show anything on the output, not even nil or any errors.