local pee = 0
function onTouched(hit)
print("meme")
if pee == 1 then
repeat wait() until pee == 0
wait(1)
print(pee)
else do
if hit.Parent:FindFirstChild("Humanoid") then
print("lol")
local debounce = false
pee = 1
if pee == 1 then
while pee == 1 do
print(hit)
hit.leaderstats.Time.Value = hit.leaderstats.Time.Value + 1
wait(1)
end
end
end
end
end
end
script.Parent.Touched:connect(onTouched)
This is the script in the part I touch, I want it to start a timer that will be displayed on the leaderboard but I can't figure it out. Sorry for the weird variable names.

2 comments
Can you explain what's going on?
I want a sword fighting game that when your on a part a timer will start indefinetly