--// All global vars will be wiped/replaced except script


return function(data)
	local playergui = service.PlayerGui
	local localplayer = service.Players.LocalPlayer
	local ping = script.Parent.Parent
	local frame = ping.Frame
	local ms = ping.Frame.Ms
	local close = ping.Frame.Close
	
	gTable:Ready()
	
	ms.Text = "..."
	
	close.MouseButton1Click:connect(function()
		ping:Destroy()
	end)
	
	repeat
		ms.Text = client.Remote.Ping().."ms"
		wait(1.5)
	until not ping
	
	if ping then 
		ping:Destroy()
	end
end
