-- Do not Change
local place = game.GameId
-- Settings
local laglevel = "unknown" -- Default Lag Value
local wait = 1 -- Wait time for lag.
-- Lag Finder
print("Game: "..place)
local one = elapsedTime()
wait()
local two = elapsedTime()
local final = two - one
print(final)
-- Lag Estimator
if final > 0.03 then
laglevel = "Tiny Lag"
else
if final > 0.06 then
laglevel = "Small Lag"
else
if final > 0.09 then
laglevel = "Medium Small Lag"
else
if final > 0.12 then
laglevel = "Medium Lag"
end
end
end
end
print(laglevel)
-- Auto Game Switcher
if final > 0.09 then
print("Lag level too high, switching servers...")
-- Switch Server script here
print("This will be replaced with the switch servers script.")
-- to here.
else
print("Lag level is fine.")
end
On line 9, it says attempt to call a number value. Why?

4 comments
We need your whole script, because on Line 9 on this code it says "wait()", please provide your whole code, as the error does not match.
this is my whole code
on line 5 set "wait" to a number, so when you do wait() your calling a number
Do you mean a real phone number or what