Spinning Part RunService Stepped Problem

How can I stop the runtime of a runservice stepped function so that when I disabled the localscript for the spinning part, and enabled again, it will resume to where it stopped moving. Here is my code that already works with spinning the part.

local runService = game:GetService('RunService')
local Stepped
 Stepped = runService.Stepped:Connect(function(runtime , deltaTime)		
   part.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(runtime ,0,0)
 end)

if Stepped then
Stepped:Disconnect()
end

That’s how I wanted to disable it but when I start the function again, it doesn’t start spinning from where it stopped.

local runService = game:GetService('RunService')

local Stepped

local globalruntime = 0

Stepped = runService.Stepped:Connect(function(runtime , deltaTime)

globalruntime = globalruntime + runtime

part.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(globalruntime ,0,0)

end)

try this