This is my first time scripting from scratch, and I need help figuring out how to make it so when I sit down, it starts a stopwatch counting up from 0. And if possible, I want it to reset when I get up.
Any help appreciated. Thank you in advance.
local seconds = script.Parent.Parent.Parent.Time
script.Parent.Text = seconds.Value
workspace.Seat.ChildAdded:Connect(function()
for i = 1,seconds.Value do
wait(1)
seconds.Value = seconds.Value + 1
script.Parent.Text = seconds.Value
end)
