Viewport frame not cloning

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
image

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.

Did you define the model variable? that’s the only problem I see

yeah and i already solved the problem myself thxs anyway :neutral_face:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.