-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtimer.lua
More file actions
14 lines (10 loc) · 880 Bytes
/
timer.lua
File metadata and controls
14 lines (10 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
local remoteFunction = game.ReplicatedStorage:WaitForChild("deltaFunction")
if game:IsLoaded() == false then game.Loaded:Wait() end
game:GetService("RunService").Heartbeat:Connect(function(deltatime)
--workspace.ClientPart.SurfaceGui.TextLabel.Text = string.format("%.1f",os.clock() + game.ReplicatedStorage.DeltaTime.Value)
workspace.ClientPart.SurfaceGui.TextLabel.Text = os.clock() + game.ReplicatedStorage.DeltaTime.Value
workspace.ServerMinusClient.SurfaceGui.TextLabel.Text = os.clock() + game.ReplicatedStorage.DeltaTime.Value - remoteFunction:InvokeServer()
workspace.ClientSidedServer.SurfaceGui.TextLabel.Text = remoteFunction:InvokeServer() + game.Players.LocalPlayer:GetNetworkPing()/2
workspace.Ping.SurfaceGui.TextLabel.Text = game.Players.LocalPlayer:GetNetworkPing()
--workspace.ClientPart.SurfaceGui.TextLabel.Text = workspace:GetServerTimeNow()
end)