Hey, I’m trying to find a way to give the player time even if they are standing still on a part. The touched event only works if the player is moving around on the part but when they stand still it doesn’t work.
script.Parent.Touched:Connect(function(touch)
local Player = game:GetService("Players"):GetPlayerFromCharacter(touch.Parent)
if Player then
local Debounce = Player:FindFirstChild("Debounce")
if Debounce.Value == false then
Player.leaderstats.Time.Value += 1
Debounce.Value = true
task.wait(1)
Debounce.Value = false
end
end
end)