-- Place: ServerScriptService.TouchLab (Script) local Players = game:GetService("Players") local pad = workspace:WaitForChild("TouchPad") assert(pad:IsA("BasePart"), "TouchPad must be a Part") local nextAllowed: {[Player]: number} = {} pad.Touched:Connect(function(hit) local character = hit:FindFirstAncestorOfClass("Model") if not character then return end local player = Players:GetPlayerFromCharacter(character) local humanoid = character:FindFirstChildOfClass("Humanoid") if not player or not humanoid or humanoid.Health <= 0 then return end local now = os.clock() if now < (nextAllowed[player] or 0) then return end nextAllowed[player] = now + 1 print("TouchPad", player.Name, "time", math.floor(now)) pad.Color = Color3.fromRGB(80, 210, 150) end) Players.PlayerRemoving:Connect(function(player) nextAllowed[player] = nil end)