How would I make it to where they guy model detaches from the GUI?

module3D = require(game.Workspace.Module3D)
frame = script.Parent.Frame
guy = game.Workspace.Guy
wait(1)
model3D = module3D:Attach3D(frame,guy)
model3D:SetActive(true)

game:GetService("RunService").RenderStepped:connect(function()
	
	local fullrotation = math.pi*6
	local currentrotation = tick()%fullrotation
	model3D:SetCFrame(CFrame.Angles(0, currentrotation,0))
	frame.Visible = false
		
	
end)