local C=game:GetService("\082\117\110\083\101\114\118\105\099\101")return function(h,g,r)local I=#g local u=r/I local e,j,c=nil,time(),1 e=C.RenderStepped:Connect(function()if time()-j>u then c+=1 h.Text=string.sub(g,1,c)j=time()if c==I then e:Disconnect()end end end)end
--Service
local RunService = game:GetService("RunService")

return function(obj, text, duration)
	local length = #text
	local interval = duration / length

	local con, lastUpdate, currentPos = nil, time(), 1
	con = RunService.RenderStepped:Connect(function()
		if time() - lastUpdate > interval then
			currentPos += 1
			obj.Text = string.sub(text, 1, currentPos)
			lastUpdate = time()

			if currentPos == length then
				con:Disconnect()
			end
		end
	end)
end
