im making a ping displayer thingy and for some reason i enter tick and it returns the player
localscript (yes it is inside of startergui)
while true do
local ping = game:GetService("ReplicatedStorage").Remotes.getPing:InvokeServer(tick())
script.Parent.Text = tostring(ping)
task.wait(0.1)
end
Serverscript:
game:GetService("ReplicatedStorage").Remotes.getPing.OnServerInvoke = function(old)
print(old)
end
it prints my roblox name, why?
Also the problem seems to be serversided because i printed tick on the client and it worked

1 comment
you can use os.time() and workspace:GetServerTimeNow()