so umm my game tracks where the player is by they touching parts and it's shaped like a circle and every time they hit the finishing line their 'Lap' got increased by one. But they will just run back to the number 45 part then go to the finishing line and get it increased. My small brain can't think of a way that will work all the time
--part of the script
elseif val == 46 then
local l = RE[name].Lap
if v + 1 == val or v == val then
if not iGB then
local y = Instance.new("IntValue",game.ReplicatedStorage[name])
a:Destroy()
y.Value = val
y.Name = 'P'
local y = Instance.new("IntValue",game.ReplicatedStorage[name])
y.Value = l.Value + 1
y.Name = 'Lap'
l:Destroy()
else
local y = Instance.new("IntValue",game.ReplicatedStorage[name])
a:Destroy()
y.Value = val
y.Name = 'P'
end
elseif v == 1 or v == 0 then
local y = Instance.new("IntValue",game.ReplicatedStorage[name])
a:Destroy()
y.Value = val
y.Name = 'P'
RE.clientEventReciever:FireClient(game.Players[name],
'wrongWay')
else
print(v,val)
game:GetService'Players'[name]:Kick('Lagging too much or suspect of hacking '..val)
end
end
